Mercurial > vim
comparison src/option.c @ 17229:f1c7b7a4d9e4 v8.1.1614
patch 8.1.1614: 'numberwidth' can only go up to 10
commit https://github.com/vim/vim/commit/f8a071265535b8cc43e50a81f4d5049883ca50e4
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jul 1 22:06:07 2019 +0200
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 https://github.com/vim/vim/issues/4584)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 01 Jul 2019 22:15:05 +0200 |
parents | 210937723567 |
children | cbd0432cf8ff |
comparison
equal
deleted
inserted
replaced
17228:da9a9c4265a1 | 17229:f1c7b7a4d9e4 |
---|---|
9491 if (curwin->w_p_nuw < 1) | 9491 if (curwin->w_p_nuw < 1) |
9492 { | 9492 { |
9493 errmsg = e_positive; | 9493 errmsg = e_positive; |
9494 curwin->w_p_nuw = 1; | 9494 curwin->w_p_nuw = 1; |
9495 } | 9495 } |
9496 if (curwin->w_p_nuw > 10) | 9496 if (curwin->w_p_nuw > 20) |
9497 { | 9497 { |
9498 errmsg = e_invarg; | 9498 errmsg = e_invarg; |
9499 curwin->w_p_nuw = 10; | 9499 curwin->w_p_nuw = 20; |
9500 } | 9500 } |
9501 curwin->w_nrwidth_line_count = 0; /* trigger a redraw */ | 9501 curwin->w_nrwidth_line_count = 0; /* trigger a redraw */ |
9502 } | 9502 } |
9503 #endif | 9503 #endif |
9504 | 9504 |