0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.1.1259: crash when exiting early

Problem:    Crash when exiting early. (Ralf Schandl)
Solution:   Only pop/push the title when it was set. (closes #4334)
This commit is contained in:
Bram Moolenaar
2019-05-03 23:15:37 +02:00
parent 9404a18ad9
commit e5c83286bb
5 changed files with 44 additions and 26 deletions

View File

@@ -1045,7 +1045,8 @@ ex_command(exarg_T *eap)
ex_comclear(exarg_T *eap UNUSED)
{
uc_clear(&ucmds);
uc_clear(&curbuf->b_ucmds);
if (curbuf != NULL)
uc_clear(&curbuf->b_ucmds);
}
/*