1
0
forked from aniani/vim

patch 8.1.2362: cannot place signs in a popup window

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)
This commit is contained in:
Bram Moolenaar
2019-11-30 14:21:53 +01:00
parent 310c32e892
commit 7257073043
5 changed files with 34 additions and 7 deletions

View File

@@ -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);
}