Skip to content

Conversation

@KSR-Yasuda
Copy link

@KSR-Yasuda KSR-Yasuda commented Sep 28, 2022

Keep :match setting in window move mode.

:match setting being bound to the window,
winresizer's window moving should care it.

How to Repro

:e a                                    " Open file a
:i
file a
hoge
fuga
.
:match Search /hoge/                    " file a: Highlight `hoge`

:below vnew b                           " Open file b
:i
file b
hoge
fuga
.
:match Search /fuga/                    " file b: Highlight `fuga`

<Ctrl-E>
m
h                                       " Exchange file a and b windo position

" Now `:match` highlight is correctly kept in new window position.
"
" Without this fix, `:match` highlight is not replaced correctly:
" it is bound to the window, not buffer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant