diff options
Diffstat (limited to 'runtime/menu.vim')
-rw-r--r-- | runtime/menu.vim | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/menu.vim b/runtime/menu.vim index f43fcb96be..37bd11ac26 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() |