1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-25 23:02:35 +03:00

GH-666 Reformat

This commit is contained in:
Tae Won Ha 2018-09-09 10:49:45 +02:00
parent 77e52c4162
commit a8c1f8e34c

View File

@ -47,10 +47,10 @@ extension NvimView {
self.keyDownDone = true self.keyDownDone = true
} }
public func insertText(_ aString: Any, replacementRange: NSRange) { public func insertText(_ object: Any, replacementRange: NSRange) {
// self.logger.debug("\(#function): \(replacementRange): '\(aString)'") stdoutLogger.debug("\(object) with \(replacementRange)")
switch aString { switch object {
case let string as String: case let string as String:
self.bridge self.bridge
@ -70,7 +70,7 @@ extension NvimView {
// unmarkText() // unmarkText()
self.lastMarkedText = self.markedText self.lastMarkedText = self.markedText
self.markedText = nil self.markedText = nil
self.markedPosition = Position.null self.markedPosition = .null
self.keyDownDone = true self.keyDownDone = true
} }
@ -78,13 +78,14 @@ extension NvimView {
// FIXME: handle when -> delete // FIXME: handle when -> delete
if self.responds(to: aSelector) { if self.responds(to: aSelector) {
logger.debug("calling \(aSelector)") stdoutLogger.debug("calling \(aSelector)")
self.perform(aSelector, with: self) self.perform(aSelector, with: self)
self.keyDownDone = true self.keyDownDone = true
return return
} }
logger.debug("\(aSelector) not implemented, forwarding input to neovim") stdoutLogger.debug("\(aSelector) not implemented, " +
"forwarding input to neovim")
self.keyDownDone = false self.keyDownDone = false
} }
@ -127,6 +128,7 @@ extension NvimView {
.trigger() .trigger()
return true return true
} }
if .control == flags && chars == "2" { if .control == flags && chars == "2" {
// <C-2> should generate \0, escaping as above // <C-2> should generate \0, escaping as above
self.bridge self.bridge