diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-07-07 06:32:54 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-07 06:32:54 +0800 |
commit | 5da9b49b19240bb00f338249fef84a2bf1212b49 (patch) | |
tree | 07a864275674601b81c5f77927b7f2b8794d8186 /src/nvim/optionstr.c | |
parent | 7a54d707fa6f32822b241140b31a348ad5ad0e6b (diff) | |
download | rneovim-5da9b49b19240bb00f338249fef84a2bf1212b49.tar.gz rneovim-5da9b49b19240bb00f338249fef84a2bf1212b49.tar.bz2 rneovim-5da9b49b19240bb00f338249fef84a2bf1212b49.zip |
vim-patch:9.1.0537: signed number detection for CTRL-X/A can be improved (#29590)
Problem: signed number detection for CTRL-X/A can be improved
(Chris Patuzzo)
Solution: Add the new "blank" value for the 'nrformat' setting. This
will make Vim assume a signed number only if there is a blank
in front of the sign.
(distobs)
fixes: vim/vim#15033
closes: vim/vim#15110
https://github.com/vim/vim/commit/25ac6d67d92e0adda53b8d44b81c15031643ca1e
Co-authored-by: distobs <cuppotatocake@gmail.com>
Diffstat (limited to 'src/nvim/optionstr.c')
-rw-r--r-- | src/nvim/optionstr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/optionstr.c b/src/nvim/optionstr.c index cdbb8c2d6d..1a4c142fdd 100644 --- a/src/nvim/optionstr.c +++ b/src/nvim/optionstr.c @@ -82,7 +82,7 @@ static char *(p_dip_values[]) = { "filler", "context:", "iblank", "icase", "closeoff", "hiddenoff", "foldcolumn:", "followwrap", "internal", "indent-heuristic", "linematch:", "algorithm:", NULL }; static char *(p_dip_algorithm_values[]) = { "myers", "minimal", "patience", "histogram", NULL }; -static char *(p_nf_values[]) = { "bin", "octal", "hex", "alpha", "unsigned", NULL }; +static char *(p_nf_values[]) = { "bin", "octal", "hex", "alpha", "unsigned", "blank", NULL }; static char *(p_ff_values[]) = { FF_UNIX, FF_DOS, FF_MAC, NULL }; static char *(p_cb_values[]) = { "unnamed", "unnamedplus", NULL }; static char *(p_cmp_values[]) = { "internal", "keepascii", NULL }; |