summaryrefslogtreecommitdiff
path: root/runtime/menu.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-01-30 00:14:18 +0000
committerBram Moolenaar <Bram@vim.org>2006-01-30 00:14:18 +0000
commit280f126ef03c4e7d71d2c8341d661d3e37157851 (patch)
treed65ce0b9c87c5c0d04432cad5eafcbdbfebf0239 /runtime/menu.vim
parent17c7c011706af19bb736c6815375f3b67a5646fc (diff)
downloadvim-git-280f126ef03c4e7d71d2c8341d661d3e37157851.tar.gz
updated for version 7.0189v7.0189
Diffstat (limited to 'runtime/menu.vim')
-rw-r--r--runtime/menu.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/menu.vim b/runtime/menu.vim
index 1a221bff3..d31e1ce79 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: 2005 Oct 01
+" Last Change: 2006 Jan 27
" 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.
@@ -1034,7 +1034,7 @@ endif
" Select a session to load; default to current session name if present
fun! s:LoadVimSesn()
if strlen(v:this_session) > 0
- let name = v:this_session
+ let name = escape(v:this_session, ' \t#%$|<>"*?[{`')
else
let name = "Session.vim"
endif
@@ -1046,7 +1046,7 @@ fun! s:SaveVimSesn()
if strlen(v:this_session) == 0
let v:this_session = "Session.vim"
endif
- execute "browse mksession! " . v:this_session
+ execute "browse mksession! " . escape(v:this_session, ' \t#%$|<>"*?[{`')
endfun
endif