mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Merge pull request #16961 from f380cedric/vim-8.2.3582
vim-patch:8.2.3582
This commit is contained in:
commit
25eb7692d8
@ -4082,7 +4082,7 @@ static void suggest_trie_walk(suginfo_T *su, langp_T *lp, char_u *fword, bool so
|
|||||||
// char, e.g., "thes," -> "these".
|
// char, e.g., "thes," -> "these".
|
||||||
p = fword + sp->ts_fidx;
|
p = fword + sp->ts_fidx;
|
||||||
MB_PTR_BACK(fword, p);
|
MB_PTR_BACK(fword, p);
|
||||||
if (!spell_iswordp(p, curwin)) {
|
if (!spell_iswordp(p, curwin) && *preword != NUL) {
|
||||||
p = preword + STRLEN(preword);
|
p = preword + STRLEN(preword);
|
||||||
MB_PTR_BACK(preword, p);
|
MB_PTR_BACK(preword, p);
|
||||||
if (spell_iswordp(p, curwin)) {
|
if (spell_iswordp(p, curwin)) {
|
||||||
|
@ -768,6 +768,14 @@ func Test_spell_screendump()
|
|||||||
call delete('XtestSpell')
|
call delete('XtestSpell')
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
func Test_spell_single_word()
|
||||||
|
new
|
||||||
|
silent! norm 0R00
|
||||||
|
spell! ßÂ
|
||||||
|
silent 0norm 0r$ Dvz=
|
||||||
|
bwipe!
|
||||||
|
endfunc
|
||||||
|
|
||||||
let g:test_data_aff1 = [
|
let g:test_data_aff1 = [
|
||||||
\"SET ISO8859-1",
|
\"SET ISO8859-1",
|
||||||
\"TRY esianrtolcdugmphbyfvkwjkqxz-\xEB\xE9\xE8\xEA\xEF\xEE\xE4\xE0\xE2\xF6\xFC\xFB'ESIANRTOLCDUGMPHBYFVKWJKQXZ",
|
\"TRY esianrtolcdugmphbyfvkwjkqxz-\xEB\xE9\xE8\xEA\xEF\xEE\xE4\xE0\xE2\xF6\xFC\xFB'ESIANRTOLCDUGMPHBYFVKWJKQXZ",
|
||||||
|
Loading…
Reference in New Issue
Block a user