diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-02-22 22:53:10 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-02-22 22:53:10 +0000 |
commit | 9cd4c0fb98cb4fe6164e4e1751c21a5a5229b9cc (patch) | |
tree | b8279ddd5f5f4b0a9d1628900eeab6dce87bb752 /src/evalfunc.c | |
parent | 2afeb408310f4f0185ce5eec079b51a3fe415a33 (diff) |
patch 8.2.4451: sort() fails when ignoring casev8.2.4451
Problem: sort() fails when ignoring case.
Solution: Accept a number one argument in sort().
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r-- | src/evalfunc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index cea002f11c..e02b757e95 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -603,6 +603,7 @@ 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; |