diff options
Diffstat (limited to 'src/nvim/tag.c')
-rw-r--r-- | src/nvim/tag.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/nvim/tag.c b/src/nvim/tag.c index 46fad688cc..1df1952f53 100644 --- a/src/nvim/tag.c +++ b/src/nvim/tag.c @@ -214,8 +214,12 @@ do_tag ( * Don't add a tag to the tagstack if 'tagstack' has been reset. */ if (!p_tgst && *tag != NUL) { - use_tagstack = FALSE; - new_tag = TRUE; + use_tagstack = false; + new_tag = true; + if (g_do_tagpreview != 0) { + xfree(ptag_entry.tagname); + ptag_entry.tagname = vim_strsave(tag); + } } else { if (g_do_tagpreview != 0) use_tagstack = FALSE; |