0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

Avoid illegal memory access in spell suggestion. (Dominique Pelle)

This commit is contained in:
Bram Moolenaar
2010-08-01 15:47:35 +02:00
parent 00ec6854e3
commit 7e88c3dc19

View File

@@ -11658,7 +11658,7 @@ suggest_trie_walk(su, lp, fword, soundfold)
* words, the edit distance and then add them. */ * words, the edit distance and then add them. */
add_sound_suggest(su, preword, sp->ts_score, lp); add_sound_suggest(su, preword, sp->ts_score, lp);
} }
else else if (sp->ts_fidx > 0)
{ {
/* Give a penalty when changing non-word char to word /* Give a penalty when changing non-word char to word
* char, e.g., "thes," -> "these". */ * char, e.g., "thes," -> "these". */