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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user