mirror of
https://github.com/qvacua/vimr.git
synced 2024-12-27 15:53:31 +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()
|
).wait()
|
||||||
}
|
}
|
||||||
|
@ -185,6 +185,10 @@ public final class NvimView: NSView, NSUserInterfaceValidations, NSTextInputClie
|
|||||||
case let .notification(method, params):
|
case let .notification(method, params):
|
||||||
self?.log.debug("NOTIFICATION: \(method): \(params)")
|
self?.log.debug("NOTIFICATION: \(method): \(params)")
|
||||||
|
|
||||||
|
if method == NvimView.rpcEventName {
|
||||||
|
self?.eventsSubject.onNext(.rpcEvent(params))
|
||||||
|
}
|
||||||
|
|
||||||
if method == "redraw" {
|
if method == "redraw" {
|
||||||
self?.renderData(params)
|
self?.renderData(params)
|
||||||
} else if method == "autocommand" {
|
} else if method == "autocommand" {
|
||||||
|
Loading…
Reference in New Issue
Block a user