summaryrefslogtreecommitdiff
path: root/src/popupwin.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-11-30 14:21:53 +0100
committerBram Moolenaar <Bram@vim.org>2019-11-30 14:21:53 +0100
commit7257073043252c2e01c8e168e6842a1121797243 (patch)
treed25b943b34d9c4184e2953dc783ecdc4ba1c02e5 /src/popupwin.c
parent310c32e8920140f0db747c6c6eb06b1ee53cdb5a (diff)
downloadvim-git-7257073043252c2e01c8e168e6842a1121797243.tar.gz
patch 8.1.2362: cannot place signs in a popup windowv8.1.2362
Problem: Cannot place signs in a popup window. (Maxim Kim) Solution: Use the group prefix "PopUp" to specify which signs should show up in a popup window. (closes #5277)
Diffstat (limited to 'src/popupwin.c')
-rw-r--r--src/popupwin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/popupwin.c b/src/popupwin.c
index 3b808e2e3..e1c21acb2 100644
--- a/src/popupwin.c
+++ b/src/popupwin.c
@@ -611,7 +611,7 @@ popup_highlight_curline(win_T *wp)
int sign_id = 0;
char_u *sign_name = popup_get_sign_name(wp);
- buf_delete_signs(wp->w_buffer, (char_u *)"popupmenu");
+ buf_delete_signs(wp->w_buffer, (char_u *)"PopUpMenu");
if ((wp->w_popup_flags & POPF_CURSORLINE) != 0)
{
@@ -626,7 +626,7 @@ popup_highlight_curline(win_T *wp)
sign_define_by_name(sign_name, NULL, (char_u *)linehl, NULL, NULL);
}
- sign_place(&sign_id, (char_u *)"popupmenu", sign_name,
+ sign_place(&sign_id, (char_u *)"PopUpMenu", sign_name,
wp->w_buffer, wp->w_cursor.lnum, SIGN_DEF_PRIO);
redraw_win_later(wp, NOT_VALID);
}