diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-05-03 23:15:37 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-05-03 23:15:37 +0200 |
commit | e5c83286bb9a72cc686f2826e605eddebe3c730c (patch) | |
tree | 8de5a0730ab3f8a50674728d48a18b645bffe586 /src/usercmd.c | |
parent | 9404a18ad9a47b10fc8de908da833ba7f12f72f5 (diff) | |
download | vim-git-e5c83286bb9a72cc686f2826e605eddebe3c730c.tar.gz |
patch 8.1.1259: crash when exiting earlyv8.1.1259
Problem: Crash when exiting early. (Ralf Schandl)
Solution: Only pop/push the title when it was set. (closes #4334)
Diffstat (limited to 'src/usercmd.c')
-rw-r--r-- | src/usercmd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/usercmd.c b/src/usercmd.c index 37c519dfa..ca01a3ca3 100644 --- a/src/usercmd.c +++ b/src/usercmd.c @@ -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); } /* |