diff src/highlight.c @ 17486:bdf277d2d14c v8.1.1741

patch 8.1.1741: cleared/added match highlighting not updated in other window commit https://github.com/vim/vim/commit/4ef18dcc2e3a6a9aea2dc90bbdb742c3c9231394 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jul 24 15:28:18 2019 +0200 patch 8.1.1741: cleared/added match highlighting not updated in other window Problem: Cleared/added match highlighting not updated in other window. (Andi Massimino) Solution: Mark the right window for refresh.
author Bram Moolenaar <Bram@vim.org>
date Wed, 24 Jul 2019 15:30:06 +0200
parents 6cf077f59152
children bba80d61ea73
line wrap: on
line diff
--- a/src/highlight.c
+++ b/src/highlight.c
@@ -3850,7 +3850,7 @@ match_add(
 	prev->next = m;
     m->next = cur;
 
-    redraw_later(rtype);
+    redraw_win_later(wp, rtype);
     return id;
 
 fail:
@@ -3932,7 +3932,7 @@ clear_matches(win_T *wp)
 	vim_free(wp->w_match_head);
 	wp->w_match_head = m;
     }
-    redraw_later(SOME_VALID);
+    redraw_win_later(wp, SOME_VALID);
 }
 
 /*