diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-04-17 22:14:47 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-04-17 22:14:47 +0000 |
commit | a93fa7ee7856b54d3778e613c7b7e4b76aaeb2af (patch) | |
tree | 4797f43c4e1694903d93da1b61ba972955cb6aad /runtime/menu.vim | |
parent | b21e5843e53d3582df5f521f57e7e52e83d51d10 (diff) | |
download | vim-git-a93fa7ee7856b54d3778e613c7b7e4b76aaeb2af.tar.gz |
updated for version 7.0e01v7.0e01
Diffstat (limited to 'runtime/menu.vim')
-rw-r--r-- | runtime/menu.vim | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/runtime/menu.vim b/runtime/menu.vim index bf95d61a9..d2b8b3d4f 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: 2006 Apr 16 +" Last Change: 2006 Apr 17 " 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. @@ -896,7 +896,11 @@ if has("spell") call cursor(0, curcol) " put the cursor back where it was endif if w != '' - let s:suglist = spellsuggest(w, 10) + if a == 'caps' + let s:suglist = [substitute(w, '.*', '\u&', '')] + else + let s:suglist = spellsuggest(w, 10) + endif if len(s:suglist) <= 0 call cursor(0, curcol) " put the cursor back where it was else |