summaryrefslogtreecommitdiffstats
path: root/runtime/menu.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-01-31 19:19:04 +0000
committerBram Moolenaar <Bram@vim.org>2005-01-31 19:19:04 +0000
commit2ce06f6eb9a10bbbf1b3a0abf9f8c1bb71311e54 (patch)
tree6dc3e7795458f6ab29244cf926d32ece9b1f696d /runtime/menu.vim
parentb23c33872aa46de39bdc2cd2cbded697afa6ad08 (diff)
updated for version 7.0046
Diffstat (limited to 'runtime/menu.vim')
-rw-r--r--runtime/menu.vim7
1 files changed, 4 insertions, 3 deletions
diff --git a/runtime/menu.vim b/runtime/menu.vim
index df9c65b6e6..e89291b16f 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: 2004 Dec 04
+" Last Change: 2005 Jan 30
" 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.
@@ -54,12 +54,13 @@ if exists("v:lang") || &langmenu != ""
" There is no exact match, try matching with a wildcard added
" (e.g. find menu_de_de.iso_8859-1.vim if s:lang == de_DE).
let s:lang = substitute(s:lang, '\.[^.]*', "", "")
- exe "runtime! lang/menu_" . s:lang . "*.vim"
+ exe "runtime! lang/menu_" . s:lang . "[^a-z]*.vim"
if !exists("did_menu_trans") && strlen($LANG) > 1
" On windows locale names are complicated, try using $LANG, it might
" have been set by set_init_1().
- exe "runtime! lang/menu_" . tolower($LANG) . "*.vim"
+ " But don't match "slovak" when $LANG is "sl".
+ exe "runtime! lang/menu_" . tolower($LANG) . "[^a-z]*vim"
endif
endif
endif