summaryrefslogtreecommitdiffstats
path: root/src/evalfunc.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-02-23 13:17:47 +0000
committerBram Moolenaar <Bram@vim.org>2022-02-23 13:17:47 +0000
commit2007dd49f5cb36f944cab1cfbceb0f864e625f74 (patch)
tree3269837fb87102d6de40418d1b4ecf7345a43c93 /src/evalfunc.c
parent6a8b13614e5bcb233d20403ae9f008ccba152be3 (diff)
patch 8.2.4455: accepting one and zero for second sort() argument is strangev8.2.4455
Problem: Accepting one and zero for the second sort() argument is strange. Solution: Disallow using one and zero in Vim9 script.
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r--src/evalfunc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c
index e02b757e95..cea002f11c 100644
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -603,7 +603,6 @@ arg_sort_how(type_T *type, type_T *decl_type UNUSED, argcontext_T *context)
{
if (type->tt_type == VAR_STRING
|| type->tt_type == VAR_PARTIAL
- || type->tt_type == VAR_NUMBER // 1 means ignore case
|| type == &t_unknown
|| type == &t_any)
return OK;