From e5c83286bb9a72cc686f2826e605eddebe3c730c Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Fri, 3 May 2019 23:15:37 +0200 Subject: 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) --- src/tag.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/tag.c') diff --git a/src/tag.c b/src/tag.c index 1242668a8..2d46e1400 100644 --- a/src/tag.c +++ b/src/tag.c @@ -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) -- cgit v1.2.1