mirror of
https://github.com/vim/vim.git
synced 2025-09-28 04:24:06 -04:00
patch 8.1.1623: display wrong with signs in narrow number column
Problem: Display wrong with signs in narrow number column. Solution: Increase the numbercolumn width if needed. (Yegappan Lakshmanan, closes #4606)
This commit is contained in:
@@ -7454,11 +7454,17 @@ did_set_string_option(
|
||||
#endif /* FEAT_INS_EXPAND */
|
||||
|
||||
#ifdef FEAT_SIGNS
|
||||
/* 'signcolumn' */
|
||||
// 'signcolumn'
|
||||
else if (varp == &curwin->w_p_scl)
|
||||
{
|
||||
if (check_opt_strings(*varp, p_scl_values, FALSE) != OK)
|
||||
errmsg = e_invarg;
|
||||
// When changing the 'signcolumn' to or from 'number', recompute the
|
||||
// width of the number column if 'number' or 'relativenumber' is set.
|
||||
if (((*oldval == 'n' && *(oldval + 1) == 'u')
|
||||
|| (*curwin->w_p_scl == 'n' && *(curwin->w_p_scl + 1) =='u'))
|
||||
&& (curwin->w_p_nu || curwin->w_p_rnu))
|
||||
curwin->w_nrwidth_line_count = 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user