mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 14:08:32 +00:00
fix(spell): make setting 'encoding' clear word list
This commit is contained in:
@@ -2596,6 +2596,8 @@ ambw_end:
|
|||||||
// only encoding=utf-8 allowed
|
// only encoding=utf-8 allowed
|
||||||
if (STRCMP(p_enc, "utf-8") != 0) {
|
if (STRCMP(p_enc, "utf-8") != 0) {
|
||||||
errmsg = e_unsupportedoption;
|
errmsg = e_unsupportedoption;
|
||||||
|
} else {
|
||||||
|
spell_reload();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -576,7 +576,6 @@ endfunc
|
|||||||
|
|
||||||
"Compound words
|
"Compound words
|
||||||
func Test_spell_compound()
|
func Test_spell_compound()
|
||||||
throw 'skipped: TODO: '
|
|
||||||
call LoadAffAndDic(g:test_data_aff3, g:test_data_dic3)
|
call LoadAffAndDic(g:test_data_aff3, g:test_data_dic3)
|
||||||
call RunGoodBad("foo m\u00EF foobar foofoobar barfoo barbarfoo",
|
call RunGoodBad("foo m\u00EF foobar foofoobar barfoo barbarfoo",
|
||||||
\ "bad: bar la foom\u00EF barm\u00EF m\u00EFfoo m\u00EFbar m\u00EFm\u00EF lala m\u00EFla lam\u00EF foola labar",
|
\ "bad: bar la foom\u00EF barm\u00EF m\u00EFfoo m\u00EFbar m\u00EFm\u00EF lala m\u00EFla lam\u00EF foola labar",
|
||||||
@@ -624,7 +623,7 @@ endfunc
|
|||||||
|
|
||||||
" Test affix flags with two characters
|
" Test affix flags with two characters
|
||||||
func Test_spell_affix()
|
func Test_spell_affix()
|
||||||
throw 'skipped: TODO: '
|
CheckNotMSWindows " FIXME: Why does this fail with MSVC?
|
||||||
call LoadAffAndDic(g:test_data_aff5, g:test_data_dic5)
|
call LoadAffAndDic(g:test_data_aff5, g:test_data_dic5)
|
||||||
call RunGoodBad("fooa1 fooa\u00E9 bar prebar barbork prebarbork startprebar start end startend startmiddleend nouend",
|
call RunGoodBad("fooa1 fooa\u00E9 bar prebar barbork prebarbork startprebar start end startend startmiddleend nouend",
|
||||||
\ "bad: foo fooa2 prabar probarbirk middle startmiddle middleend endstart startprobar startnouend",
|
\ "bad: foo fooa2 prabar probarbirk middle startmiddle middleend endstart startprobar startnouend",
|
||||||
@@ -700,7 +699,6 @@ endfunc
|
|||||||
|
|
||||||
" Affix flags
|
" Affix flags
|
||||||
func Test_spell_affix_flags()
|
func Test_spell_affix_flags()
|
||||||
throw 'skipped: TODO: '
|
|
||||||
call LoadAffAndDic(g:test_data_aff10, g:test_data_dic10)
|
call LoadAffAndDic(g:test_data_aff10, g:test_data_dic10)
|
||||||
call RunGoodBad("drink drinkable drinkables drinktable drinkabletable",
|
call RunGoodBad("drink drinkable drinkables drinktable drinkabletable",
|
||||||
\ "bad: drinks drinkstable drinkablestable",
|
\ "bad: drinks drinkstable drinkablestable",
|
||||||
|
Reference in New Issue
Block a user