Skip to content
This repository was archived by the owner on Jun 30, 2023. It is now read-only.

Commit 4d49a33

Browse files
committed
update to python-client api changes
1 parent 1a2d159 commit 4d49a33

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

neovim_gui/cli.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
from .ui_bridge import UIBridge
77
from neovim import attach
8-
from neovim.api import DecodeHook
98
from neovim.compat import IS_PYTHON3
109

1110

@@ -60,9 +59,6 @@ def main(ctx, prog, notify, listen, connect, profile):
6059
nvim_argv = shlex.split(prog or 'nvim --embed') + ctx.args
6160
nvim = attach('child', argv=nvim_argv)
6261

63-
if IS_PYTHON3:
64-
nvim = nvim.with_hook(DecodeHook())
65-
6662
from .gtk_ui import GtkUI
6763
ui = GtkUI()
6864
bridge = UIBridge()

neovim_gui/ui_bridge.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def detach(self):
5151
self._call(self._nvim.ui_detach)
5252

5353
def _call(self, fn, *args):
54-
self._nvim.session.threadsafe_call(fn, *args)
54+
self._nvim.async_call(fn, *args)
5555

5656
def _ui_event_loop(self):
5757
self._sem.acquire()
@@ -101,5 +101,5 @@ def apply_updates():
101101
if method == 'redraw':
102102
self._ui.schedule_screen_update(apply_updates)
103103

104-
self._nvim.session.run(on_request, on_notification, on_setup)
104+
self._nvim.run_loop(on_request, on_notification, on_setup)
105105
self._ui.quit()

0 commit comments

Comments
 (0)