Mercurial > vim
changeset 8930:a2aca019ba48 v7.4.1751
commit https://github.com/vim/vim/commit/def5abe0a2727041ecee69afdccfca405333bd24
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Apr 18 19:46:15 2016 +0200
patch 7.4.1751
Problem: Crash when 'tagstack' is off. (Dominique Pelle)
Solution: Fix it. (Hirohito Higashi)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 18 Apr 2016 20:00:06 +0200 |
parents | 3c2b1fe2509e |
children | 20af5157c7f4 |
files | src/tag.c src/testdir/test_alot.vim src/version.c |
diffstat | 3 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/tag.c +++ b/src/tag.c @@ -200,6 +200,14 @@ do_tag( { use_tagstack = FALSE; new_tag = TRUE; +#if defined(FEAT_WINDOWS) && defined(FEAT_QUICKFIX) + if (g_do_tagpreview != 0) + { + vim_free(ptag_entry.tagname); + if ((ptag_entry.tagname = vim_strsave(tag)) == NULL) + goto end_do_tag; + } +#endif } else {