Skip to content

Commit

Permalink
fix: small bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
benlubas committed Feb 23, 2024
1 parent 3ca888e commit 65da69e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion rplugin/python3/molten/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,7 @@ def function_on_buffer_unload(self, _: Any) -> None:
def function_on_exit_pre(self, _: Any) -> None:
self._deinitialize()

@pynvim.function("MoltenTick", sync=False) # type: ignore
@pynvim.function("MoltenTick", sync=True) # type: ignore
@nvimui # type: ignore
def function_molten_tick(self, _: Any) -> None:
self._initialize_if_necessary()
Expand Down
2 changes: 2 additions & 0 deletions rplugin/python3/molten/outputbuffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ def calculate_offset(self, anchor: Position) -> int:
def show_floating_win(self, anchor: Position) -> None:
win = self.nvim.current.window
win_col = win.col
offset = 0
if self.options.cover_empty_lines:
offset = self.calculate_offset(anchor)
win_row = (
Expand Down Expand Up @@ -353,6 +354,7 @@ def show_floating_win(self, anchor: Position) -> None:

if self.display_virt_lines is not None:
del self.display_virt_lines
self.display_virt_lines = None

if self.options.output_virt_lines or self.options.cover_empty_lines:
virt_lines_y = anchor.lineno
Expand Down

0 comments on commit 65da69e

Please sign in to comment.