mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 21:48:35 +00:00
vim-patch:8.1.1355: obvious mistakes are accepted as valid expressions
Problem: Obvious mistakes are accepted as valid expressions.
Solution: Be more strict about parsing numbers. (Yasuhiro Matsumoto,
closes vim/vim#3981)
16e9b85113
Update vim_str2nr_spec.lua to add more tests that use strict = true.
This commit is contained in:
@@ -609,7 +609,7 @@ void ex_sort(exarg_T *eap)
|
||||
} else {
|
||||
nrs[lnum - eap->line1].st_u.num.is_number = true;
|
||||
vim_str2nr(s, NULL, NULL, sort_what,
|
||||
&nrs[lnum - eap->line1].st_u.num.value, NULL, 0);
|
||||
&nrs[lnum - eap->line1].st_u.num.value, NULL, 0, false);
|
||||
}
|
||||
} else {
|
||||
s = skipwhite(p);
|
||||
|
Reference in New Issue
Block a user