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:
@@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user