Skip to content

Commit def5abe

Browse files
committed
patch 7.4.1751
Problem: Crash when 'tagstack' is off. (Dominique Pelle) Solution: Fix it. (Hirohito Higashi)
1 parent 7f7c332 commit def5abe

3 files changed

Lines changed: 11 additions & 0 deletions

File tree

src/tag.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,14 @@ do_tag(
200200
{
201201
use_tagstack = FALSE;
202202
new_tag = TRUE;
203+
#if defined(FEAT_WINDOWS) && defined(FEAT_QUICKFIX)
204+
if (g_do_tagpreview != 0)
205+
{
206+
vim_free(ptag_entry.tagname);
207+
if ((ptag_entry.tagname = vim_strsave(tag)) == NULL)
208+
goto end_do_tag;
209+
}
210+
#endif
203211
}
204212
else
205213
{

src/testdir/test_alot.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ source test_sort.vim
2727
source test_statusline.vim
2828
source test_syn_attr.vim
2929
source test_tabline.vim
30+
source test_tagjump.vim
3031
source test_timers.vim
3132
source test_undolevels.vim
3233
source test_unlet.vim

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -748,6 +748,8 @@ static char *(features[]) =
748748

749749
static int included_patches[] =
750750
{ /* Add new patch number below this line */
751+
/**/
752+
1751,
751753
/**/
752754
1750,
753755
/**/

0 commit comments

Comments
 (0)