1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-01 10:02:36 +03:00

GH-512 Invoke agent.quit in neoVimStopped again

- We only close mach channels in quit()
This commit is contained in:
Tae Won Ha 2017-08-26 17:44:17 +02:00
parent 4ed3c5de48
commit 1aaf2c931c
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44

View File

@ -186,6 +186,8 @@ extension NeoVimView {
self.quitNeoVimCondition.signal() self.quitNeoVimCondition.signal()
self.quitNeoVimCondition.unlock() self.quitNeoVimCondition.unlock()
self.agent.quit()
gui.async { gui.async {
self.delegate?.neoVimStopped() self.delegate?.neoVimStopped()
} }
@ -206,10 +208,6 @@ extension NeoVimView {
if event == .BUFREADPOST || event == .BUFWRITEPOST { if event == .BUFREADPOST || event == .BUFWRITEPOST {
self.currentBufferChanged(bufferHandle) self.currentBufferChanged(bufferHandle)
} }
if event == .VIMLEAVE {
self.agent.quit()
}
} }
} }