diff --git a/runtime/menu.vim b/runtime/menu.vim index ab509a692..59fa12603 100644 --- a/runtime/menu.vim +++ b/runtime/menu.vim @@ -474,7 +474,7 @@ if has("spell") an 40.335.270 &Tools.&Spelling.&Find\ More\ Languages :call SpellLang() let s:undo_spelllang = ['aun &Tools.&Spelling.&Find\ More\ Languages'] - def s:SpellLang() + def s:SpellLang(encChanged = false) for cmd in s:undo_spelllang exe "silent! " .. cmd endfor @@ -482,7 +482,8 @@ if has("spell") var enc = &enc == "iso-8859-15" ? "latin1" : &enc - if !exists("g:menutrans_set_lang_to") + # Reset g:menutrans_set_lang_to when called for the EncodingChanged event. + if !exists("g:menutrans_set_lang_to") || encChanged g:menutrans_set_lang_to = 'Set Language to' endif @@ -510,12 +511,12 @@ if has("spell") else echomsg "Found " .. found .. " more spell files" endif + # Need to redo this when 'encoding' is changed. augroup spellmenu - au! EncodingChanged * call SpellLang() + au! EncodingChanged * call SpellLang(true) augroup END enddef - endif " Tools.Fold Menu diff --git a/src/version.c b/src/version.c index cd6f0b673..a9a0c72a0 100644 --- a/src/version.c +++ b/src/version.c @@ -695,6 +695,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 960, /**/ 959, /**/