diff src/screen.c @ 6134:4c25af735304 v7.4.405

updated for version 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.
author Bram Moolenaar <bram@vim.org>
date Sat, 16 Aug 2014 16:28:36 +0200
parents f051e50a6a5f
children 69da1498ce89
line wrap: on
line diff
--- a/src/screen.c
+++ b/src/screen.c
@@ -3858,7 +3858,7 @@ win_line(wp, lnum, startrow, endrow, noc
 			{
 			    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);