mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
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 #3981)
This commit is contained in:
@@ -558,7 +558,8 @@ ex_sort(exarg_T *eap)
|
||||
{
|
||||
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);
|
||||
}
|
||||
}
|
||||
#ifdef FEAT_FLOAT
|
||||
|
Reference in New Issue
Block a user