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:
parent
e2f21e5948
commit
0eee692eaa
@ -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() }
|
||||
|
@ -268,12 +268,4 @@ extension NeoVimView {
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
public func didBecomeMain() {
|
||||
self.agent.vimInput("<FocusGained>")
|
||||
}
|
||||
|
||||
public func didResignMain() {
|
||||
self.agent.vimInput("<FocusLost>")
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user