fix(ui): close outdated cmdline pum on redraw (#36815)

This commit is contained in:
zeertzjq
2025-12-05 08:23:22 +08:00
committed by GitHub
parent e8fdc7ef9a
commit a8a0bba2f8
5 changed files with 18 additions and 2 deletions

View File

@@ -684,6 +684,8 @@ int update_screen(void)
if (pum_drawn() && must_redraw_pum) {
win_check_ns_hl(curwin);
pum_redraw();
} else if (State & MODE_CMDLINE) {
pum_check_clear();
}
win_check_ns_hl(NULL);

View File

@@ -2158,6 +2158,7 @@ M.funcs = {
then the name is also tried without adding an extension.
On MS-Windows it only checks if the file exists and is not a
directory, not if it's really executable.
On MS-Windows an executable in the same directory as the Vim
executable is always found (it's added to $PATH at |startup|).
*NoDefaultCurrentDirectoryInExePath*