0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 8.2.4438: crash on exit when using cmdline window

Problem:    Crash on exit when using cmdline window.
Solution:   Reset "cmdwin_type" before exiting. (closes #9817)
This commit is contained in:
Bram Moolenaar
2022-02-22 12:08:07 +00:00
parent 0f113e4f7b
commit ca0c1caa36
3 changed files with 19 additions and 0 deletions

View File

@@ -1065,6 +1065,9 @@ read_error_exit(void)
if (silent_mode) // Normal way to exit for "ex -s"
getout(0);
STRCPY(IObuff, _("Vim: Error reading input, exiting...\n"));
#ifdef FEAT_CMDWIN
cmdwin_type = 0;
#endif
preserve_exit();
}