aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Morales <hel.sheep@gmail.com>2014-08-22 20:59:46 -0400
committerFelipe Morales <hel.sheep@gmail.com>2014-09-04 00:18:25 -0400
commit9d7e3336cf6378c409138009350775e254d3a823 (patch)
treee9bdfe0854af0a2324b83163b64eca81899fe20d
parenta8124602f00c5142493526b43cd21b89dcbfef3f (diff)
downloadrneovim-9d7e3336cf6378c409138009350775e254d3a823.tar.gz
rneovim-9d7e3336cf6378c409138009350775e254d3a823.tar.bz2
rneovim-9d7e3336cf6378c409138009350775e254d3a823.zip
vim-patch: 7.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. https://code.google.com/p/vim/source/detail?r=7fa2bed947fde3514a700c96861a537d816d6fd4
-rw-r--r--src/nvim/screen.c2
-rw-r--r--src/nvim/version.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c
index d5a96489c1..91db983525 100644
--- a/src/nvim/screen.c
+++ b/src/nvim/screen.c
@@ -2957,7 +2957,7 @@ win_line (
&& v >= (long)shl->startcol
&& v < (long)shl->endcol) {
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);
diff --git a/src/nvim/version.c b/src/nvim/version.c
index 61154c6de7..fd38b6e5e0 100644
--- a/src/nvim/version.c
+++ b/src/nvim/version.c
@@ -233,7 +233,7 @@ static int included_patches[] = {
//365,
//364,
//363,
- //362,
+ 362,
//361,
//360,
//359,