mirror of
https://github.com/qvacua/vimr.git
synced 2024-11-24 03:25:03 +03:00
GH-297 Reformat
This commit is contained in:
parent
831bdff927
commit
a1c7db04d7
@ -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...
|
||||
|
Loading…
Reference in New Issue
Block a user