summaryrefslogtreecommitdiff
path: root/src/screen.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-08-18 16:35:23 +0200
committerBram Moolenaar <Bram@vim.org>2019-08-18 16:35:23 +0200
commit62a0cb443c3184f24a6dac73d3505f9056cf6056 (patch)
tree42ee160304d76f887d29e4e9a193c426d8bacb75 /src/screen.c
parentf4665e78f2d1b2ca64de5f5331d03de7d61c8c66 (diff)
downloadvim-git-62a0cb443c3184f24a6dac73d3505f9056cf6056.tar.gz
patch 8.1.1882: cannot specify properties of the info popup windowv8.1.1882
Problem: Cannot specify properties of the info popup window. Solution: Add the 'completepopup' option. Default to PmenuSel highlight.
Diffstat (limited to 'src/screen.c')
-rw-r--r--src/screen.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/screen.c b/src/screen.c
index 760cd2c1f..cb2d07b02 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -996,7 +996,12 @@ get_wcr_attr(win_T *wp)
wcr_attr = syn_name2attr(wp->w_p_wcr);
#ifdef FEAT_TEXT_PROP
else if (WIN_IS_POPUP(wp))
- wcr_attr = HL_ATTR(HLF_PNI);
+ {
+ if (wp->w_popup_flags & POPF_INFO)
+ wcr_attr = HL_ATTR(HLF_PSI); // PmenuSel
+ else
+ wcr_attr = HL_ATTR(HLF_PNI); // Pmenu
+ }
#endif
return wcr_attr;
}