1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-11-28 02:54:31 +03:00

GH-382 Use vim command output to cd

This commit is contained in:
Tae Won Ha 2017-01-09 21:53:48 +01:00
parent cc24d91906
commit e95d0e9a39
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44

View File

@ -99,7 +99,7 @@ public class NeoVimView: NSView, NeoVimUiBridgeProtocol, NSUserInterfaceValidati
set {
let path = newValue.path
let escapedCwd = self.agent.escapedFileName(path)
self.agent.vimCommand("silent cd \(escapedCwd)")
self.agent.vimCommandOutput("cd \(escapedCwd)")
}
}
@ -339,10 +339,6 @@ extension NeoVimView {
return self.agent.vimCommandOutput(command) ?? ""
}
public func vimExCommand(_ command: String) {
self.agent.vimCommand(command)
}
public func cursorGo(to position: Position) {
self.agent.cursorGo(toRow: Int32(position.row), column: Int32(position.column))
}