Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep match highlight in window move #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

None yet

1 participant