mirror of
https://github.com/neovim/neovim.git
synced 2025-09-23 19:48:32 +00:00
vim-patch: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) https://code.google.com/p/vim/source/detail?r=v7-4-349
This commit is contained in:
@@ -1356,8 +1356,9 @@ static void win_update(win_T *wp)
|
||||
(foldmethodIsSyntax(wp)
|
||||
&& hasAnyFolding(wp)) ||
|
||||
syntax_check_changed(lnum)))
|
||||
/* match in fixed position might need redraw */
|
||||
|| wp->w_match_head != NULL
|
||||
// match in fixed position might need redraw
|
||||
// if lines were inserted or deleted
|
||||
|| (wp->w_match_head != NULL && buf->b_mod_xlines != 0)
|
||||
))))) {
|
||||
if (lnum == mod_top)
|
||||
top_to_mod = FALSE;
|
||||
|
Reference in New Issue
Block a user