From a1c7db04d7a7c264209d0073ea91f9affb704ef5 Mon Sep 17 00:00:00 2001 From: Tae Won Ha Date: Sun, 20 Nov 2016 21:55:18 +0100 Subject: [PATCH] GH-297 Reformat --- SwiftNeoVim/NeoVimView.swift | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/SwiftNeoVim/NeoVimView.swift b/SwiftNeoVim/NeoVimView.swift index 8c316594..bf424f8c 100644 --- a/SwiftNeoVim/NeoVimView.swift +++ b/SwiftNeoVim/NeoVimView.swift @@ -17,7 +17,7 @@ fileprivate struct RowRun: CustomStringConvertible { } } -public class NeoVimView: NSView, NSUserInterfaceValidations { +public class NeoVimView: NSView, NeoVimUiBridgeProtocol, NSUserInterfaceValidations { public struct Config { let useInteractiveZsh: Bool @@ -1197,7 +1197,7 @@ extension NeoVimView { } // MARK: - NeoVimUiBridgeProtocol -extension NeoVimView: NeoVimUiBridgeProtocol { +extension NeoVimView { public func resize(toWidth width: Int32, height: Int32) { DispatchUtils.gui { @@ -1398,6 +1398,13 @@ extension NeoVimView: NeoVimUiBridgeProtocol { public func setIcon(_ icon: String) { } + public func stop() { + DispatchUtils.gui { + self.delegate?.neoVimStopped() + self.agent.quit() + } + } + public func setDirtyStatus(_ dirty: Bool) { DispatchUtils.gui { self.delegate?.set(dirtyStatus: dirty) @@ -1410,13 +1417,6 @@ extension NeoVimView: NeoVimUiBridgeProtocol { } } - public func stop() { - DispatchUtils.gui { - self.delegate?.neoVimStopped() - self.agent.quit() - } - } - fileprivate func updateCursorWhenPutting(currentPosition curPos: Position, screenCursor: Position) { if self.mode == .Cmdline { // When the cursor is in the command line, then we need this...