summaryrefslogtreecommitdiff
path: root/src/screen.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2014-07-09 20:20:43 +0200
committerBram Moolenaar <Bram@vim.org>2014-07-09 20:20:43 +0200
commit1e1aca37841103a90ba773f14899ba3a3757cee2 (patch)
tree1eb80d3e80e39b9b6e22166a645194f510df2ba7 /src/screen.c
parentc80451500322cc4b05899957084afa75f52e719e (diff)
downloadvim-git-1e1aca37841103a90ba773f14899ba3a3757cee2.tar.gz
updated for version 7.4.362v7.4.362
Problem: When matchaddpos() uses a length smaller than the number of bytes in the (last) character the highlight continues until the end of the line. Solution: Change condition from equal to larger-or-equal.
Diffstat (limited to 'src/screen.c')
-rw-r--r--src/screen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/screen.c b/src/screen.c
index 3bd4125b8..909a60658 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -3852,7 +3852,7 @@ win_line(wp, lnum, startrow, endrow, nochange)
{
shl->attr_cur = shl->attr;
}
- else if (v == (long)shl->endcol)
+ else if (v >= (long)shl->endcol)
{
shl->attr_cur = 0;
next_search_hl(wp, shl, lnum, (colnr_T)v, cur);