vim-patch:9.1.1516: tests: no test that 'incsearch' is updated after search completion (#34808)

Problem:  tests: no test that 'incsearch' is updated after accepting
          search completion.
Solution: Add a test case (zeertzjq).

closes: vim/vim#17682

08e5b128b8
This commit is contained in:
zeertzjq
2025-07-06 17:41:59 +08:00
committed by GitHub
parent 5335d9991f
commit cf5506f0fd
3 changed files with 50 additions and 1 deletions

View File

@ -1465,7 +1465,6 @@ 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) {
return command_line_not_changed(s);
// Apply search highlighting
if (wild_type == WILD_APPLY) {
if (s->is_state.winid != curwin->handle) {
@ -1475,6 +1474,7 @@ static int command_line_execute(VimState *state, int key)
may_do_incsearch_highlighting(s->firstc, s->count, &s->is_state);
}
}
return command_line_not_changed(s);
}
return command_line_handle_key(s);