mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.1.1564: sign column takes up space
Problem: Sign column takes up space. (Adam Stankiewicz) Solution: Optionally put signs in the number column. (Yegappan Lakshmanan, closes #4555, closes #4515)
This commit is contained in:
@@ -3231,7 +3231,7 @@ static char *(p_fcl_values[]) = {"all", NULL};
|
||||
static char *(p_cot_values[]) = {"menu", "menuone", "longest", "preview", "noinsert", "noselect", NULL};
|
||||
#endif
|
||||
#ifdef FEAT_SIGNS
|
||||
static char *(p_scl_values[]) = {"yes", "no", "auto", NULL};
|
||||
static char *(p_scl_values[]) = {"yes", "no", "auto", "number", NULL};
|
||||
#endif
|
||||
#if defined(MSWIN) && defined(FEAT_TERMINAL)
|
||||
static char *(p_twt_values[]) = {"winpty", "conpty", "", NULL};
|
||||
@@ -13556,6 +13556,12 @@ get_bkc_value(buf_T *buf)
|
||||
int
|
||||
signcolumn_on(win_T *wp)
|
||||
{
|
||||
// If 'signcolumn' is set to 'number', signs are displayed in the 'number'
|
||||
// column (if present). Otherwise signs are to be displayed in the sign
|
||||
// column.
|
||||
if (*wp->w_p_scl == 'n' && *(wp->w_p_scl + 1) == 'u')
|
||||
return wp->w_buffer->b_signlist != NULL && !wp->w_p_nu && !wp->w_p_rnu;
|
||||
|
||||
if (*wp->w_p_scl == 'n')
|
||||
return FALSE;
|
||||
if (*wp->w_p_scl == 'y')
|
||||
|
Reference in New Issue
Block a user