Mercurial > vim
diff src/drawline.c @ 18356:596a04c49d76 v8.1.2172
patch 8.1.2172: spell highlight is wrong at start of the line
Commit: https://github.com/vim/vim/commit/7751d1d1a3d447d0d48f57f34e0da9f7c6ac433d
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Oct 18 20:37:08 2019 +0200
patch 8.1.2172: spell highlight is wrong at start of the line
Problem: Spell highlight is wrong at start of the line.
Solution: Fix setting the "v" variable. (closes https://github.com/vim/vim/issues/5078)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 18 Oct 2019 20:45:03 +0200 |
parents | b08dbcb42399 |
children | ee489bb09ea8 |
line wrap: on
line diff
--- 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.