From 0eee692eaa3885dd6b6d0a96ffc22e0e06daf5f6 Mon Sep 17 00:00:00 2001 From: Tae Won Ha Date: Thu, 7 Sep 2017 18:29:25 +0200 Subject: [PATCH] GH-520 Actually invkoe new method --- SwiftNeoVim/NeoVimView+Api.swift | 8 ++++++++ SwiftNeoVim/NeoVimView+Key.swift | 8 -------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/SwiftNeoVim/NeoVimView+Api.swift b/SwiftNeoVim/NeoVimView+Api.swift index 770e44ce..14c6ea35 100644 --- a/SwiftNeoVim/NeoVimView+Api.swift +++ b/SwiftNeoVim/NeoVimView+Api.swift @@ -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() } diff --git a/SwiftNeoVim/NeoVimView+Key.swift b/SwiftNeoVim/NeoVimView+Key.swift index e63537a2..4ad94142 100644 --- a/SwiftNeoVim/NeoVimView+Key.swift +++ b/SwiftNeoVim/NeoVimView+Key.swift @@ -268,12 +268,4 @@ extension NeoVimView { return nil } - - public func didBecomeMain() { - self.agent.vimInput("") - } - - public func didResignMain() { - self.agent.vimInput("") - } }