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

Commit

Permalink
update to python-client api changes
Browse files Browse the repository at this point in the history
  • Loading branch information
bfredl committed Apr 2, 2016
1 parent 1a2d159 commit 4d49a33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions neovim_gui/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

from .ui_bridge import UIBridge
from neovim import attach
from neovim.api import DecodeHook
from neovim.compat import IS_PYTHON3


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

if IS_PYTHON3:
nvim = nvim.with_hook(DecodeHook())

from .gtk_ui import GtkUI
ui = GtkUI()
bridge = UIBridge()
Expand Down
4 changes: 2 additions & 2 deletions neovim_gui/ui_bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def detach(self):
self._call(self._nvim.ui_detach)

def _call(self, fn, *args):
self._nvim.session.threadsafe_call(fn, *args)
self._nvim.async_call(fn, *args)

def _ui_event_loop(self):
self._sem.acquire()
Expand Down Expand Up @@ -101,5 +101,5 @@ def apply_updates():
if method == 'redraw':
self._ui.schedule_screen_update(apply_updates)

self._nvim.session.run(on_request, on_notification, on_setup)
self._nvim.run_loop(on_request, on_notification, on_setup)
self._ui.quit()

0 comments on commit 4d49a33

Please sign in to comment.