diff options
Diffstat (limited to 'src/screen.c')
| -rw-r--r-- | src/screen.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/screen.c b/src/screen.c index d39fca263..b810065ab 100644 --- a/src/screen.c +++ b/src/screen.c @@ -11333,6 +11333,14 @@ number_width(win_T *wp) if (n < wp->w_p_nuw - 1) n = wp->w_p_nuw - 1; +# 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) + && (*wp->w_p_scl == 'n' && *(wp->w_p_scl + 1) == 'u')) + n = 2; +# endif + wp->w_nrwidth_width = n; wp->w_nuw_cached = wp->w_p_nuw; return n; |
