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

updated for version 7.0087

This commit is contained in:
Bram Moolenaar
2005-06-17 22:00:15 +00:00
parent f7bbbc506e
commit e756604ff5
11 changed files with 93 additions and 24 deletions

View File

@@ -3594,11 +3594,16 @@ win_line(wp, lnum, startrow, endrow)
char_attr = syntax_attr;
if (c != 0 && (!has_syntax || can_spell))
{
char_u *prev_ptr;
# ifdef FEAT_MBYTE
char_u *prev_ptr = ptr - (has_mbyte ? mb_l : 1);
# else
char_u *prev_ptr = ptr - 1;
if (has_mbyte)
{
prev_ptr = ptr - mb_l;
v -= mb_l - 1;
}
else
# endif
prev_ptr = ptr - 1;
word_end = v + spell_check(wp, prev_ptr, &spell_attr);
/* In Insert mode only highlight a word that