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

updated for version 7.0082

This commit is contained in:
Bram Moolenaar
2005-06-07 21:00:02 +00:00
parent 86bc1fb004
commit b765d63491
3 changed files with 487 additions and 139 deletions

View File

@@ -4665,6 +4665,27 @@ dozet:
#endif /* FEAT_FOLDING */
#ifdef FEAT_SYN_HL
case 'g': /* "zg": add good word to word list */
case 'w': /* "zw": add wrong word to word list */
{
char_u *ptr = NULL;
int len;
if (checkclearop(cap->oap))
break;
# ifdef FEAT_VISUAL
if (VIsual_active && get_visual_text(cap, &ptr, &len)
== FAIL)
return;
# endif
if (ptr == NULL && (len = find_ident_under_cursor(&ptr,
FIND_IDENT)) == 0)
return;
spell_add_word(ptr, len, nchar == 'w');
}
#endif
default: clearopbeep(cap->oap);
}