diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-10-18 20:37:08 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-10-18 20:37:08 +0200 |
commit | 7751d1d1a3d447d0d48f57f34e0da9f7c6ac433d (patch) | |
tree | a66d9b1b9a6ad27a836452205e4b989ccd3dc71c /src/drawline.c | |
parent | a1cb1d1dce14dd005797590721f1bcd0e7c3b35f (diff) | |
download | vim-git-7751d1d1a3d447d0d48f57f34e0da9f7c6ac433d.tar.gz |
patch 8.1.2172: spell highlight is wrong at start of the linev8.1.2172
Problem: Spell highlight is wrong at start of the line.
Solution: Fix setting the "v" variable. (closes #5078)
Diffstat (limited to 'src/drawline.c')
-rw-r--r-- | src/drawline.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/drawline.c b/src/drawline.c index 9a4ff7dc5..333eeba29 100644 --- a/src/drawline.c +++ b/src/drawline.c @@ -1824,6 +1824,7 @@ win_line( // Only do this when there is no syntax highlighting, the // @Spell cluster is not used or the current syntax item // contains the @Spell cluster. + v = (long)(ptr - line); if (has_spell && v >= word_end && v > cur_checked_col) { spell_attr = 0; @@ -1874,7 +1875,8 @@ win_line( // Remember that the good word continues at the // start of the next line. checked_lnum = lnum + 1; - checked_col = (int)((p - nextline) + len - nextline_idx); + checked_col = (int)((p - nextline) + + len - nextline_idx); } // Turn index into actual attributes. |