summaryrefslogtreecommitdiff
path: root/src/tag.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-03-04 21:35:07 +0100
committerBram Moolenaar <Bram@vim.org>2021-03-04 21:35:07 +0100
commit6057748a1af2260b4ab9630f21fe71f42f91250d (patch)
tree404ed7198be078a11d3ef6271bf7a2aba20e1d75 /src/tag.c
parent6c3843ca8ab105bfb85f6ea8bcec2cbc03f46e7f (diff)
downloadvim-git-6057748a1af2260b4ab9630f21fe71f42f91250d.tar.gz
patch 8.2.2568: second time a preview popup is opened highlight is not setv8.2.2568
Problem: Second time a preview popup is opened highlight is not set. (Gabriel Dupras) Solution: Apply 'previewpopup' after getting the file. (closes #7928)
Diffstat (limited to 'src/tag.c')
-rw-r--r--src/tag.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tag.c b/src/tag.c
index e3cd87677..f26c7cd63 100644
--- a/src/tag.c
+++ b/src/tag.c
@@ -3510,6 +3510,11 @@ jumpto_tag(
// Save value of no_hlsearch, jumping to a tag is not a real search
save_no_hlsearch = no_hlsearch;
#endif
+#ifdef FEAT_PROP_POPUP
+ // getfile() may have cleared options, apply 'previewpopup' again.
+ if (g_do_tagpreview != 0 && *p_pvp != NUL)
+ parse_previewpopup(curwin);
+#endif
/*
* If 'cpoptions' contains 't', store the search pattern for the "n"