diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-02-23 13:17:47 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-02-23 13:17:47 +0000 |
commit | 2007dd49f5cb36f944cab1cfbceb0f864e625f74 (patch) | |
tree | 3269837fb87102d6de40418d1b4ecf7345a43c93 /runtime/menu.vim | |
parent | 6a8b13614e5bcb233d20403ae9f008ccba152be3 (diff) | |
download | vim-git-2007dd49f5cb36f944cab1cfbceb0f864e625f74.tar.gz |
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 'runtime/menu.vim')
-rw-r--r-- | runtime/menu.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/menu.vim b/runtime/menu.vim index 12924af6f..602c4d545 100644 --- a/runtime/menu.vim +++ b/runtime/menu.vim @@ -2,7 +2,7 @@ " You can also use this as a start for your own set of menus. " " Maintainer: Bram Moolenaar <Bram@vim.org> -" Last Change: 2022 Feb 04 +" Last Change: 2022 Feb 23 " Note that ":an" (short for ":anoremenu") is often used to make a menu work " in all modes and avoid side effects from mappings defined by the user. @@ -378,7 +378,7 @@ def s:SetupColorSchemes() n += globpath(&packpath, "pack/*/opt/*/colors/*.vim", 1, 1) # Ignore case for VMS and windows, sort on name - var names = sort(map(n, 'substitute(v:val, "\\c.*[/\\\\:\\]]\\([^/\\\\:]*\\)\\.vim", "\\1", "")'), 1) + var names = sort(map(n, 'substitute(v:val, "\\c.*[/\\\\:\\]]\\([^/\\\\:]*\\)\\.vim", "\\1", "")'), 'i') # define all the submenu entries var idx = 100 |