Mercurial > vim
comparison src/option.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 | 8b0114ffde2b |
children | fd95d4dbeb37 |
comparison
equal
deleted
inserted
replaced
18602:9d6fa65148d2 | 18603:f249b44039e0 |
---|---|
7291 return empty_option; | 7291 return empty_option; |
7292 return win->w_p_sbr; | 7292 return win->w_p_sbr; |
7293 } | 7293 } |
7294 #endif | 7294 #endif |
7295 | 7295 |
7296 #if defined(FEAT_SIGNS) || defined(PROTO) | |
7297 /* | |
7298 * Return TRUE when window "wp" has a column to draw signs in. | |
7299 */ | |
7300 int | |
7301 signcolumn_on(win_T *wp) | |
7302 { | |
7303 // If 'signcolumn' is set to 'number', signs are displayed in the 'number' | |
7304 // column (if present). Otherwise signs are to be displayed in the sign | |
7305 // column. | |
7306 if (*wp->w_p_scl == 'n' && *(wp->w_p_scl + 1) == 'u') | |
7307 return wp->w_buffer->b_signlist != NULL && !wp->w_p_nu && !wp->w_p_rnu; | |
7308 | |
7309 if (*wp->w_p_scl == 'n') | |
7310 return FALSE; | |
7311 if (*wp->w_p_scl == 'y') | |
7312 return TRUE; | |
7313 return (wp->w_buffer->b_signlist != NULL | |
7314 # ifdef FEAT_NETBEANS_INTG | |
7315 || wp->w_buffer->b_has_sign_column | |
7316 # endif | |
7317 ); | |
7318 } | |
7319 #endif | |
7320 | |
7321 #if defined(FEAT_EVAL) || defined(PROTO) | 7296 #if defined(FEAT_EVAL) || defined(PROTO) |
7322 /* | 7297 /* |
7323 * Get window or buffer local options. | 7298 * Get window or buffer local options. |
7324 */ | 7299 */ |
7325 dict_T * | 7300 dict_T * |