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/tag.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/tag.c')
| -rw-r--r-- | src/tag.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -2860,7 +2860,8 @@ found_tagfile_cb(char_u *fname, void *cookie UNUSED) free_tag_stuff(void) { ga_clear_strings(&tag_fnames); - do_tag(NULL, DT_FREE, 0, 0, 0); + if (curwin != NULL) + do_tag(NULL, DT_FREE, 0, 0, 0); tag_freematch(); # if defined(FEAT_QUICKFIX) |
