summaryrefslogtreecommitdiff
path: root/src/screen.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-11-12 22:33:45 +0100
committerBram Moolenaar <Bram@vim.org>2019-11-12 22:33:45 +0100
commit4eb7dae255abc271cf313d4c75839577f1424183 (patch)
tree55738e6838d3de39c91541c21687990c8af5b113 /src/screen.c
parentcbee635eee3007db97646ddb9f211a1d4966eb2a (diff)
downloadvim-git-4eb7dae255abc271cf313d4c75839577f1424183.tar.gz
patch 8.1.2295: if buffer of popup is in another window cursorline sign showsv8.1.2295
Problem: If buffer of popup is in another window cursorline sign shows. Solution: Check the group of the sign.
Diffstat (limited to 'src/screen.c')
-rw-r--r--src/screen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/screen.c b/src/screen.c
index 0120d11eb..8453c8d8e 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -4615,7 +4615,7 @@ number_width(win_T *wp)
# ifdef FEAT_SIGNS
// If 'signcolumn' is set to 'number' and there is a sign to display, then
// the minimal width for the number column is 2.
- if (n < 2 && (wp->w_buffer->b_signlist != NULL)
+ if (n < 2 && get_first_valid_sign(wp) != NULL
&& (*wp->w_p_scl == 'n' && *(wp->w_p_scl + 1) == 'u'))
n = 2;
# endif