vim-patch:8.1.1259: crash when exiting early (#35552)

Problem:    Crash when exiting early. (Ralf Schandl)
Solution:   Only pop/push the title when it was set. (closes vim/vim#4334)

e5c83286bb

Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
Jan Edmund Lazo
2025-08-30 01:48:24 -04:00
committed by GitHub
parent 0c0ef489f9
commit b3d29f396d
3 changed files with 31 additions and 19 deletions

View File

@@ -1053,7 +1053,9 @@ theend:
void ex_comclear(exarg_T *eap)
{
uc_clear(&ucmds);
uc_clear(&curbuf->b_ucmds);
if (curbuf != NULL) {
uc_clear(&curbuf->b_ucmds);
}
}
void free_ucmd(ucmd_T *cmd)