1
0
forked from aniani/vim

patch 8.2.4451: sort() fails when ignoring case

Problem:    sort() fails when ignoring case.
Solution:   Accept a number one argument in sort().
This commit is contained in:
Bram Moolenaar
2022-02-22 22:53:10 +00:00
parent 2afeb40831
commit 9cd4c0fb98
3 changed files with 4 additions and 5 deletions

View File

@@ -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;