summaryrefslogtreecommitdiff
path: root/runtime/menu.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-07-22 21:52:15 +0000
committerBram Moolenaar <Bram@vim.org>2005-07-22 21:52:15 +0000
commitd8c0087ccea4baf4df913d24049a91a24962f20a (patch)
tree56c41c410d217a9739ad19675b3647fa75a0358f /runtime/menu.vim
parent63b3ce8757b1277c2196518692aba1fbe2241564 (diff)
downloadvim-git-d8c0087ccea4baf4df913d24049a91a24962f20a.tar.gz
updated for version 7.0113
Diffstat (limited to 'runtime/menu.vim')
-rw-r--r--runtime/menu.vim5
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/menu.vim b/runtime/menu.vim
index f43fcb96b..37bd11ac2 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 Jul 21
+" Last Change: 2005 Jul 22
" 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.
@@ -880,6 +880,9 @@ if has("spell")
if exists("s:changeitem") && s:changeitem != ''
call <SID>SpellDel()
endif
+ if !&spell || &spelllang == ''
+ return
+ endif
let curcol = col('.')
let w = spellbadword()