0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

updated for version 7.0222

This commit is contained in:
Bram Moolenaar 2006-03-12 22:19:04 +00:00
parent a1956f6b07
commit 3c56a964af

View File

@ -1290,7 +1290,7 @@ restore_vimvar(idx, save_tv)
} }
} }
#if defined(FEAT_SYN_HL) || defined(PROTO) #if defined(FEAT_SPELL) || defined(PROTO)
/* /*
* Evaluate an expression to a list with suggestions. * Evaluate an expression to a list with suggestions.
* For the "expr:" part of 'spellsuggest'. * For the "expr:" part of 'spellsuggest'.
@ -10609,7 +10609,7 @@ f_has(argvars, rettv)
#ifdef FEAT_NETBEANS_INTG #ifdef FEAT_NETBEANS_INTG
"netbeans_intg", "netbeans_intg",
#endif #endif
#ifdef FEAT_SYN_HL #ifdef FEAT_SPELL
"spell", "spell",
#endif #endif
#ifdef FEAT_SYN_HL #ifdef FEAT_SYN_HL
@ -14365,7 +14365,7 @@ f_soundfold(argvars, rettv)
rettv->v_type = VAR_STRING; rettv->v_type = VAR_STRING;
s = get_tv_string(&argvars[0]); s = get_tv_string(&argvars[0]);
#ifdef FEAT_SYN_HL #ifdef FEAT_SPELL
rettv->vval.v_string = eval_soundfold(s); rettv->vval.v_string = eval_soundfold(s);
#else #else
rettv->vval.v_string = vim_strsave(s); rettv->vval.v_string = vim_strsave(s);
@ -14388,7 +14388,7 @@ f_spellbadword(argvars, rettv)
if (rettv_list_alloc(rettv) == FAIL) if (rettv_list_alloc(rettv) == FAIL)
return; return;
#ifdef FEAT_SYN_HL #ifdef FEAT_SPELL
if (argvars[0].v_type == VAR_UNKNOWN) if (argvars[0].v_type == VAR_UNKNOWN)
{ {
/* Find the start and length of the badly spelled word. */ /* Find the start and length of the badly spelled word. */
@ -14430,12 +14430,13 @@ f_spellbadword(argvars, rettv)
/* /*
* "spellsuggest()" function * "spellsuggest()" function
*/ */
/*ARGSUSED*/
static void static void
f_spellsuggest(argvars, rettv) f_spellsuggest(argvars, rettv)
typval_T *argvars; typval_T *argvars;
typval_T *rettv; typval_T *rettv;
{ {
#ifdef FEAT_SYN_HL #ifdef FEAT_SPELL
char_u *str; char_u *str;
int typeerr = FALSE; int typeerr = FALSE;
int maxcount; int maxcount;
@ -14448,7 +14449,7 @@ f_spellsuggest(argvars, rettv)
if (rettv_list_alloc(rettv) == FAIL) if (rettv_list_alloc(rettv) == FAIL)
return; return;
#ifdef FEAT_SYN_HL #ifdef FEAT_SPELL
if (curwin->w_p_spell && *curbuf->b_p_spl != NUL) if (curwin->w_p_spell && *curbuf->b_p_spl != NUL)
{ {
str = get_tv_string(&argvars[0]); str = get_tv_string(&argvars[0]);