Mercurial > vim
comparison src/tag.c @ 16511:4182f74e2965 v8.1.1259
patch 8.1.1259: crash when exiting early
commit https://github.com/vim/vim/commit/e5c83286bb9a72cc686f2826e605eddebe3c730c
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri May 3 23:15:37 2019 +0200
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 https://github.com/vim/vim/issues/4334)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 03 May 2019 23:30:05 +0200 |
parents | 826ad48af5e3 |
children | b52ea9c5f1db |
comparison
equal
deleted
inserted
replaced
16510:816e05c23ddc | 16511:4182f74e2965 |
---|---|
2858 #if defined(EXITFREE) || defined(PROTO) | 2858 #if defined(EXITFREE) || defined(PROTO) |
2859 void | 2859 void |
2860 free_tag_stuff(void) | 2860 free_tag_stuff(void) |
2861 { | 2861 { |
2862 ga_clear_strings(&tag_fnames); | 2862 ga_clear_strings(&tag_fnames); |
2863 do_tag(NULL, DT_FREE, 0, 0, 0); | 2863 if (curwin != NULL) |
2864 do_tag(NULL, DT_FREE, 0, 0, 0); | |
2864 tag_freematch(); | 2865 tag_freematch(); |
2865 | 2866 |
2866 # if defined(FEAT_QUICKFIX) | 2867 # if defined(FEAT_QUICKFIX) |
2867 tagstack_clear_entry(&ptag_entry); | 2868 tagstack_clear_entry(&ptag_entry); |
2868 # endif | 2869 # endif |