fix(inccommand): clear cmdpreview state if preview is not shown (#18923)

This commit is contained in:
zeertzjq
2022-06-11 13:04:19 +08:00
committed by GitHub
parent 2b252430aa
commit 2b539d6fdf
2 changed files with 31 additions and 0 deletions

View File

@@ -2516,6 +2516,7 @@ static void cmdpreview_show(CommandLineState *s)
// If preview callback returned 0, update screen to clear remnants of an earlier preview.
if (cmdpreview_type == 0) {
cmdpreview = false;
update_screen(SOME_VALID);
}
end: