diff runtime/menu.vim @ 438:59b7b7e99c95

updated for version 7.0113
author vimboss
date Fri, 22 Jul 2005 21:52:15 +0000
parents 73f016dbb279
children 01af1008a8d8
line wrap: on
line diff
--- 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()