0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.2568: second time a preview popup is opened highlight is not set

Problem:    Second time a preview popup is opened highlight is not set.
            (Gabriel Dupras)
Solution:   Apply 'previewpopup' after getting the file. (closes #7928)
This commit is contained in:
Bram Moolenaar
2021-03-04 21:35:07 +01:00
parent 6c3843ca8a
commit 6057748a1a
7 changed files with 36 additions and 26 deletions

View File

@@ -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"