1
0
forked from aniani/vim

patch 8.1.1614: 'numberwidth' can only go up to 10

Problem:    'numberwidth' can only go up to 10.
Solution:   Allow up to 20. (Charlie Stanton, closes #4584)
This commit is contained in:
Bram Moolenaar
2019-07-01 22:06:07 +02:00
parent a83e70000f
commit f8a0712655
6 changed files with 31 additions and 29 deletions

View File

@@ -9493,10 +9493,10 @@ set_num_option(
errmsg = e_positive;
curwin->w_p_nuw = 1;
}
if (curwin->w_p_nuw > 10)
if (curwin->w_p_nuw > 20)
{
errmsg = e_invarg;
curwin->w_p_nuw = 10;
curwin->w_p_nuw = 20;
}
curwin->w_nrwidth_line_count = 0; /* trigger a redraw */
}