0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

updated for version 7.0137

This commit is contained in:
Bram Moolenaar
2005-08-25 21:27:31 +00:00
parent 955295684b
commit 81f1ecbc4d
14 changed files with 7329 additions and 71 deletions

View File

@@ -2915,6 +2915,31 @@ win_line(wp, lnum, startrow, endrow)
/* When w_skipcol is non-zero, first line needs 'showbreak' */
if (wp->w_p_wrap)
need_showbreak = TRUE;
#endif
#ifdef FEAT_SYN_HL
/* When spell checking a word we need to figure out the start of the
* word and if it's badly spelled or not. */
if (has_spell)
{
int len;
pos = wp->w_cursor;
wp->w_cursor.lnum = lnum;
wp->w_cursor.col = ptr - line;
len = spell_move_to(wp, FORWARD, TRUE, TRUE, &spell_attr);
if (len == 0 || wp->w_cursor.col > ptr - line)
{
/* no bad word found at line start, don't check until end of a
* word */
spell_attr = 0;
word_end = spell_to_word_end(ptr, wp->w_buffer) - line + 1;
}
else
/* bad word found, use attributes until end of word */
word_end = wp->w_cursor.col + len + 1;
wp->w_cursor = pos;
}
#endif
}