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:
@@ -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 */
|
||||
}
|
||||
|
Reference in New Issue
Block a user