comparison src/evalfunc.c @ 27851:86e8c92c3f65 v8.2.4451

patch 8.2.4451: sort() fails when ignoring case Commit: https://github.com/vim/vim/commit/9cd4c0fb98cb4fe6164e4e1751c21a5a5229b9cc Author: Bram Moolenaar <Bram@vim.org> Date: Tue Feb 22 22:53:10 2022 +0000 patch 8.2.4451: sort() fails when ignoring case Problem: sort() fails when ignoring case. Solution: Accept a number one argument in sort().
author Bram Moolenaar <Bram@vim.org>
date Wed, 23 Feb 2022 00:00:02 +0100
parents 780818e65dff
children 3cb1a109e987
comparison
equal deleted inserted replaced
27850:7fab9ff1619b 27851:86e8c92c3f65
601 static int 601 static int
602 arg_sort_how(type_T *type, type_T *decl_type UNUSED, argcontext_T *context) 602 arg_sort_how(type_T *type, type_T *decl_type UNUSED, argcontext_T *context)
603 { 603 {
604 if (type->tt_type == VAR_STRING 604 if (type->tt_type == VAR_STRING
605 || type->tt_type == VAR_PARTIAL 605 || type->tt_type == VAR_PARTIAL
606 || type->tt_type == VAR_NUMBER // 1 means ignore case
606 || type == &t_unknown 607 || type == &t_unknown
607 || type == &t_any) 608 || type == &t_any)
608 return OK; 609 return OK;
609 610
610 if (type->tt_type == VAR_FUNC) 611 if (type->tt_type == VAR_FUNC)