comparison src/screen.c @ 6018:79950dae1d7d v7.4.349

updated for version 7.4.349 Problem: When there are matches to highlight the whole window is redrawn, which is slow. Solution: Only redraw everything when lines were inserted or deleted. Reset b_mod_xlines when needed. (Alexey Radkov)
author Bram Moolenaar <bram@vim.org>
date Wed, 02 Jul 2014 17:16:58 +0200
parents ce284c205558
children d42a1d3b74d4
comparison
equal deleted inserted replaced
6017:7be65fcedd0b 6018:79950dae1d7d
1767 && hasAnyFolding(wp)) || 1767 && hasAnyFolding(wp)) ||
1768 # endif 1768 # endif
1769 syntax_check_changed(lnum))) 1769 syntax_check_changed(lnum)))
1770 #endif 1770 #endif
1771 #ifdef FEAT_SEARCH_EXTRA 1771 #ifdef FEAT_SEARCH_EXTRA
1772 /* match in fixed position might need redraw */ 1772 /* match in fixed position might need redraw
1773 || wp->w_match_head != NULL 1773 * if lines were inserted or deleted */
1774 || (wp->w_match_head != NULL
1775 && buf->b_mod_xlines != 0)
1774 #endif 1776 #endif
1775 ))))) 1777 )))))
1776 { 1778 {
1777 #ifdef FEAT_SEARCH_EXTRA 1779 #ifdef FEAT_SEARCH_EXTRA
1778 if (lnum == mod_top) 1780 if (lnum == mod_top)