comparison runtime/menu.vim @ 540:2df7f3a5eb96

updated for version 7.0153
author vimboss
date Mon, 03 Oct 2005 22:02:18 +0000
parents 6f8b578776ab
children 9032e4668296
comparison
equal deleted inserted replaced
539:b13dbb7b797c 540:2df7f3a5eb96
1 " Vim support file to define the default menus 1 " Vim support file to define the default menus
2 " You can also use this as a start for your own set of menus. 2 " You can also use this as a start for your own set of menus.
3 " 3 "
4 " Maintainer: Bram Moolenaar <Bram@vim.org> 4 " Maintainer: Bram Moolenaar <Bram@vim.org>
5 " Last Change: 2005 Aug 16 5 " Last Change: 2005 Oct 01
6 6
7 " Note that ":an" (short for ":anoremenu") is often used to make a menu work 7 " Note that ":an" (short for ":anoremenu") is often used to make a menu work
8 " in all modes and avoid side effects from mappings defined by the user. 8 " in all modes and avoid side effects from mappings defined by the user.
9 9
10 " Make sure the '<' and 'C' flags are not included in 'cpoptions', otherwise 10 " Make sure the '<' and 'C' flags are not included in 'cpoptions', otherwise
900 if !&spell || &spelllang == '' 900 if !&spell || &spelllang == ''
901 return 901 return
902 endif 902 endif
903 903
904 let curcol = col('.') 904 let curcol = col('.')
905 let w = spellbadword() 905 let [w, a] = spellbadword()
906 if col('.') > curcol " don't use word after the cursor 906 if col('.') > curcol " don't use word after the cursor
907 let w = '' 907 let w = ''
908 call cursor(0, curcol) " put the cursor back where it was 908 call cursor(0, curcol) " put the cursor back where it was
909 endif 909 endif
910 if w != '' 910 if w != ''