mirror of
https://github.com/qvacua/vimr.git
synced 2024-11-24 11:37:32 +03:00
Refactor slightly
This commit is contained in:
parent
b4685a4bc1
commit
46d43c7ccd
@ -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)")
|
||||||
|
@ -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
|
||||||
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user