You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.