diff options
author | Marco Hinz <mh.codebro@gmail.com> | 2014-09-23 16:46:36 +0200 |
---|---|---|
committer | Marco Hinz <mh.codebro@gmail.com> | 2014-09-23 16:46:36 +0200 |
commit | 366f358a62f6b75ad08cbd9b69ba67e99fa3d2b1 (patch) | |
tree | b5bf4b96dd0e0a03a67653a4c8ce382ad80ffca1 /src/nvim/screen.c | |
parent | 21f1802b8af60878c5c83032732cb1b4e1ef7f34 (diff) | |
download | rneovim-366f358a62f6b75ad08cbd9b69ba67e99fa3d2b1.tar.gz rneovim-366f358a62f6b75ad08cbd9b69ba67e99fa3d2b1.tar.bz2 rneovim-366f358a62f6b75ad08cbd9b69ba67e99fa3d2b1.zip |
vim-patch:7.4.405
Problem: Screen updating is slow when using matches.
Solution: Do not use the ">=" as in patch 7.4.362, check the lnum.
https://code.google.com/p/vim/source/detail?r=v7-4-405
Diffstat (limited to 'src/nvim/screen.c')
-rw-r--r-- | src/nvim/screen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c index e882935e39..fbf208fb51 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -2948,7 +2948,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->lnum == lnum) { shl->attr_cur = 0; next_search_hl(wp, shl, lnum, (colnr_T)v, cur); |