Merge #7858 'vim-patch: spell-related patches'

This commit is contained in:
Justin M. Keyes
2018-01-16 02:14:41 +01:00
committed by GitHub
9 changed files with 854 additions and 28 deletions

View File

@@ -15535,6 +15535,7 @@ static void f_spellbadword(typval_T *argvars, typval_T *rettv, FunPtr fptr)
len = spell_move_to(curwin, FORWARD, true, true, &attr);
if (len != 0) {
word = (char *)get_cursor_pos_ptr();
curwin->w_set_curswant = true;
}
} else if (curwin->w_p_spell && *curbuf->b_s.b_p_spl != NUL) {
const char *str = tv_get_string_chk(&argvars[0]);