Mercurial > vim
diff src/screen.c @ 17771:4bd21046902b v8.1.1882
patch 8.1.1882: cannot specify properties of the info popup window
commit https://github.com/vim/vim/commit/62a0cb443c3184f24a6dac73d3505f9056cf6056
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Aug 18 16:35:23 2019 +0200
patch 8.1.1882: cannot specify properties of the info popup window
Problem: Cannot specify properties of the info popup window.
Solution: Add the 'completepopup' option. Default to PmenuSel highlight.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 18 Aug 2019 16:45:03 +0200 |
parents | a51ccadd0dca |
children | 59f8948b7590 |
line wrap: on
line diff
--- 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; }