mirror of
https://github.com/qvacua/vimr.git
synced 2024-12-26 23:36:08 +03:00
fix remote rpc commands
This commit is contained in:
parent
6ebb94b97a
commit
5943d1b901
@ -177,6 +177,7 @@ extension NvimView {
|
||||
)
|
||||
}
|
||||
)
|
||||
.andThen(self.api.subscribe(event: NvimView.rpcEventName))
|
||||
}
|
||||
).wait()
|
||||
}
|
||||
|
@ -185,6 +185,10 @@ public final class NvimView: NSView, NSUserInterfaceValidations, NSTextInputClie
|
||||
case let .notification(method, params):
|
||||
self?.log.debug("NOTIFICATION: \(method): \(params)")
|
||||
|
||||
if method == NvimView.rpcEventName {
|
||||
self?.eventsSubject.onNext(.rpcEvent(params))
|
||||
}
|
||||
|
||||
if method == "redraw" {
|
||||
self?.renderData(params)
|
||||
} else if method == "autocommand" {
|
||||
|
Loading…
Reference in New Issue
Block a user