diff options
author | Bram Moolenaar <Bram@vim.org> | 2005-03-25 21:53:48 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2005-03-25 21:53:48 +0000 |
commit | 68b76a69aa818e4220654244a4353ab43c1ae728 (patch) | |
tree | e7542f0a1a67a088cb8b01c7be4c699a8c203a81 /src/screen.c | |
parent | a88d968da127052294354dc1e7d6ce30610e66ff (diff) | |
download | vim-git-68b76a69aa818e4220654244a4353ab43c1ae728.tar.gz |
updated for version 7.0064
Diffstat (limited to 'src/screen.c')
-rw-r--r-- | src/screen.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/screen.c b/src/screen.c index 28565fa42..70c7ff189 100644 --- a/src/screen.c +++ b/src/screen.c @@ -2337,7 +2337,7 @@ fold_line(wp, fold_count, foldinfo, lnum, row) else len = W_WIDTH(wp) - txtcol; RL_MEMSET(wp->w_old_cursor_fcol + txtcol, hl_attr(HLF_V), - len - wp->w_old_cursor_fcol); + len - (int)wp->w_old_cursor_fcol); } } else @@ -3591,6 +3591,9 @@ win_line(wp, lnum, startrow, endrow) * @Spell cluster. */ if (has_spell && v >= word_end) { + spell_attr = 0; + if (area_attr == 0 && search_attr == 0) + char_attr = syntax_attr; if (!has_syntax || can_spell) { char_u *prev_ptr = ptr - ( @@ -3599,7 +3602,6 @@ win_line(wp, lnum, startrow, endrow) # endif 1); - spell_attr = 0; iswordc = spell_iswordc(prev_ptr); if (iswordc && !prev_iswordc) { @@ -3620,8 +3622,6 @@ win_line(wp, lnum, startrow, endrow) } prev_iswordc = iswordc; } - else - spell_attr = 0; } if (spell_attr != 0) char_attr = hl_combine_attr(char_attr, spell_attr); |