diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-05-19 19:59:35 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-05-19 19:59:35 +0200 |
commit | 16e9b85113e0b354ece1cb4f5fcc7866850f3685 (patch) | |
tree | 2abe4e3cffe8b0281f0690e5570a47eb2198a826 /src/ex_cmds.c | |
parent | f5842c5a533346c4ff41ff666e465c85f1de35d5 (diff) |
patch 8.1.1355: obvious mistakes are accepted as valid expressionsv8.1.1355
Problem: Obvious mistakes are accepted as valid expressions.
Solution: Be more strict about parsing numbers. (Yasuhiro Matsumoto,
closes #3981)
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r-- | src/ex_cmds.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c index 964c4556c9..ff86d1cd47 100644 --- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -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 |