mirror of
https://github.com/neovim/neovim.git
synced 2025-10-13 21:36:05 +00:00
vim-patch:9.1.1604: completion: incsearch highlight might be lost (#35236)
Problem: completion: incsearch highlight might be lost after search
completion (Hirohito Higashi)
Solution: Restore incsearch highlight after dismissing pum with Ctrl-E
(Girish Palya)
related: vim/vim#17870
closes: vim/vim#17891
04c9e78cd3
This change actually isn't needed as Nvim doesn't call update_screen()
to redraw pum, but it doesn't hurt either.
Co-authored-by: Girish Palya <girishji@gmail.com>
This commit is contained in:
@@ -1489,13 +1489,11 @@ static int command_line_execute(VimState *state, int key)
|
||||
// If already used to cancel/accept wildmenu, don't process the key further.
|
||||
if (wild_type == WILD_CANCEL || wild_type == WILD_APPLY) {
|
||||
// Apply search highlighting
|
||||
if (wild_type == WILD_APPLY) {
|
||||
if (s->is_state.winid != curwin->handle) {
|
||||
init_incsearch_state(&s->is_state);
|
||||
}
|
||||
if (KeyTyped || vpeekc() == NUL) {
|
||||
may_do_incsearch_highlighting(s->firstc, s->count, &s->is_state);
|
||||
}
|
||||
if (s->is_state.winid != curwin->handle) {
|
||||
init_incsearch_state(&s->is_state);
|
||||
}
|
||||
if (KeyTyped || vpeekc() == NUL) {
|
||||
may_do_incsearch_highlighting(s->firstc, s->count, &s->is_state);
|
||||
}
|
||||
return command_line_not_changed(s);
|
||||
}
|
||||
|
Reference in New Issue
Block a user