Skip to content

Commit

Permalink
fix: make UpdateInterface sync (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
benlubas committed Mar 13, 2024
1 parent ca725ae commit 8d31d04
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/Windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Windows is problematic.

> [!WARNING]
> The entire section is a hack, and can break when you update Molten. The file contents below are up to
> date as of version 1.7.x
> date as of version 1.8.x
This plugin is a remote plugin, and there are reportedly problems with the `:UpdateRemotePlugins`
command not generating the rplugin manifest file on Windows. This file is supposed to be
Expand Down Expand Up @@ -63,7 +63,7 @@ call remote#host#RegisterPlugin('python3', '/home/benlubas/github/molten-nvim/rp
\ {'sync': v:true, 'name': 'MoltenOnWinScrolled', 'type': 'function', 'opts': {}},
\ {'sync': v:true, 'name': 'MoltenStatusLineInit', 'type': 'function', 'opts': {}},
\ {'sync': v:true, 'name': 'MoltenStatusLineKernels', 'type': 'function', 'opts': {}},
\ {'sync': v:false, 'name': 'MoltenUpdateInterface', 'type': 'function', 'opts': {}},
\ {'sync': v:true, 'name': 'MoltenUpdateInterface', 'type': 'function', 'opts': {}},
\ {'sync': v:true, 'name': 'MoltenUpdateOption', 'type': 'function', 'opts': {}},
\ ])
```
Expand Down
2 changes: 1 addition & 1 deletion rplugin/python3/molten/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,7 @@ def function_molten_send_stdin(self, args: Tuple[str, str]) -> None:
if m.kernel_id == args[0]:
m.send_stdin(args[1])

@pynvim.function("MoltenUpdateInterface", sync=False) # type: ignore
@pynvim.function("MoltenUpdateInterface", sync=True) # type: ignore
@nvimui # type: ignore
def function_update_interface(self, _: Any) -> None:
self._update_interface()
Expand Down

0 comments on commit 8d31d04

Please sign in to comment.