1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-11-24 11:37:32 +03:00

Refactor slightly

This commit is contained in:
Tae Won Ha 2019-03-03 21:59:19 +01:00
parent b4685a4bc1
commit 46d43c7ccd
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44
3 changed files with 3 additions and 3 deletions

View File

@ -78,7 +78,7 @@ extension NvimView {
self.logger.debug("NOTIFICATION: \(method): \(params)") self.logger.debug("NOTIFICATION: \(method): \(params)")
guard method == NvimView.rpcEventName else { return } guard method == NvimView.rpcEventName else { return }
self.eventsSubject.onNext(.rpcEvent(method, params)) self.eventsSubject.onNext(.rpcEvent(params))
case let .error(_, msg): case let .error(_, msg):
self.logger.debug("MSG ERROR: \(msg)") self.logger.debug("MSG ERROR: \(msg)")

View File

@ -55,7 +55,7 @@ public class NvimView: NSView,
case scroll case scroll
case cursor(Position) case cursor(Position)
case rpcEvent(String, [MessagePack.MessagePackValue]) case rpcEvent([MessagePack.MessagePackValue])
case rpcEventSubscribed case rpcEventSubscribed
case initVimError case initVimError

View File

@ -285,7 +285,7 @@ class MainWindow: NSObject,
fileLog.error("Got api error with msg '\(msg)' and error: \(error)") fileLog.error("Got api error with msg '\(msg)' and error: \(error)")
break break
case .rpcEvent(let method, let params): case .rpcEvent(let params):
self.rpcEventAction(params: params) self.rpcEventAction(params: params)
case .rpcEventSubscribed: case .rpcEventSubscribed: