From f8a071265535b8cc43e50a81f4d5049883ca50e4 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 1 Jul 2019 22:06:07 +0200 Subject: 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) --- src/option.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/option.c') diff --git a/src/option.c b/src/option.c index 941ea66ff..cd50e8d62 100644 --- a/src/option.c +++ b/src/option.c @@ -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 */ } -- cgit v1.2.1