Offscreen display spits unwanted text with syntax_hl
and relativenumber
turned on when another window exist
#369
Labels
syntax_hl
and relativenumber
turned on when another window exist
#369
Explain the issue
When
g:matchparen_offscreen
,g:syntax_hl
, and vim'srelativenumber
are turned on, the plugin behaves as expected if there is only one window in the session. However, when there are multiple windows in the session, instead of showing a popup, the plugin would replace the entire matched line (e.g. if my cursor is at line one, the entire line is replaced) with the matched text (including the (relative) line number of the matched line). Note that for the bug to be reliably reproduced, before creating new windows, the cursor needs to move off of any parentheses such that no popup exists at the time the new windows are created.Minimal working example
Please provide a minimal working example, e.g.,
Any long file with a pair of braces far enough apart such that one of the matching pair goes offscreen when the cursor is on another.
Minimal vimrc file
The following should often suffice:
Note that in this example,
matchup_matchparen_deferred
is turned on to ensure issue reproduction. In my day-to-day setup, even when the option is turned off, the problem still exists with larger files.Video of the bug being reproduced
vim-matchup-bug-upload.mp4
Note that the additional window does not need to be the same file; in my common use case, it is usually a file tree like netrw or nvim-tree.
System
vim-matchup: master branch commit 1975afe
nvim: NVIM v0.10.1
Build type: RelWithDebInfo
LuaJIT 2.1.1725453128
The text was updated successfully, but these errors were encountered: