Skip to content

v1.1.1

Latest

Choose a tag to compare

@github-actions github-actions released this 04 Sep 01:31
Snap nvim's window back when it switches buffers on its own

File-mark jumps ('0-'9, 'A-'Z) and cross-file Ctrl+O make nvim load
another file into its single window. VS keeps showing its document, so
nvim's cursor/scroll reports then describe the wrong file: the caret
slams to end-of-file and % matches in a buffer that isn't on screen.

The companion now notifies on BufEnter (before the state push), the hub
tracks the current buffer path and raises BufferSwitched, and the
listener snaps the window back to the mirror of the document VS is
showing. Cursor and viewport reports from a foreign buffer are dropped
in the gap.