1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-29 00:34:26 +03:00

GH-520 Actually invkoe new method

This commit is contained in:
Tae Won Ha 2017-09-07 18:29:25 +02:00
parent e2f21e5948
commit 0eee692eaa
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44
2 changed files with 8 additions and 8 deletions

View File

@ -127,6 +127,14 @@ extension NeoVimView {
self.agent.cursorGo(toRow: Int32(position.row), column: Int32(position.column))
}
public func didBecomeMain() {
self.agent.focusGained(true)
}
public func didResignMain() {
self.agent.focusGained(false)
}
func waitForNeoVimToQuit() {
self.agent.neoVimQuitCondition.lock()
defer { self.agent.neoVimQuitCondition.unlock() }

View File

@ -268,12 +268,4 @@ extension NeoVimView {
return nil
}
public func didBecomeMain() {
self.agent.vimInput("<FocusGained>")
}
public func didResignMain() {
self.agent.vimInput("<FocusLost>")
}
}