1
0
forked from aniani/vim

patch 7.4.1751

Problem:    Crash when 'tagstack' is off. (Dominique Pelle)
Solution:   Fix it. (Hirohito Higashi)
This commit is contained in:
Bram Moolenaar 2016-04-18 19:46:15 +02:00
parent 7f7c3325d3
commit def5abe0a2
3 changed files with 11 additions and 0 deletions

View File

@ -200,6 +200,14 @@ do_tag(
{ {
use_tagstack = FALSE; use_tagstack = FALSE;
new_tag = TRUE; 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 else
{ {

View File

@ -27,6 +27,7 @@ source test_sort.vim
source test_statusline.vim source test_statusline.vim
source test_syn_attr.vim source test_syn_attr.vim
source test_tabline.vim source test_tabline.vim
source test_tagjump.vim
source test_timers.vim source test_timers.vim
source test_undolevels.vim source test_undolevels.vim
source test_unlet.vim source test_unlet.vim

View File

@ -748,6 +748,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1751,
/**/ /**/
1750, 1750,
/**/ /**/