Mercurial > vim
comparison src/screen.c @ 18603:f249b44039e0 v8.1.2295
patch 8.1.2295: if buffer of popup is in another window cursorline sign shows
Commit: https://github.com/vim/vim/commit/4eb7dae255abc271cf313d4c75839577f1424183
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Nov 12 22:33:45 2019 +0100
patch 8.1.2295: if buffer of popup is in another window cursorline sign shows
Problem: If buffer of popup is in another window cursorline sign shows.
Solution: Check the group of the sign.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 12 Nov 2019 22:45:05 +0100 |
parents | 2a806e3c39f6 |
children | bbea1f108187 |
comparison
equal
deleted
inserted
replaced
18602:9d6fa65148d2 | 18603:f249b44039e0 |
---|---|
4613 n = wp->w_p_nuw - 1; | 4613 n = wp->w_p_nuw - 1; |
4614 | 4614 |
4615 # ifdef FEAT_SIGNS | 4615 # ifdef FEAT_SIGNS |
4616 // If 'signcolumn' is set to 'number' and there is a sign to display, then | 4616 // If 'signcolumn' is set to 'number' and there is a sign to display, then |
4617 // the minimal width for the number column is 2. | 4617 // the minimal width for the number column is 2. |
4618 if (n < 2 && (wp->w_buffer->b_signlist != NULL) | 4618 if (n < 2 && get_first_valid_sign(wp) != NULL |
4619 && (*wp->w_p_scl == 'n' && *(wp->w_p_scl + 1) == 'u')) | 4619 && (*wp->w_p_scl == 'n' && *(wp->w_p_scl + 1) == 'u')) |
4620 n = 2; | 4620 n = 2; |
4621 # endif | 4621 # endif |
4622 | 4622 |
4623 wp->w_nrwidth_width = n; | 4623 wp->w_nrwidth_width = n; |