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.
diff --git a/src/highlight.c b/src/highlight.c
index d641703..42fab45 100644
--- a/src/highlight.c
+++ b/src/highlight.c
@@ -3850,7 +3850,7 @@
prev->next = m;
m->next = cur;
- redraw_later(rtype);
+ redraw_win_later(wp, rtype);
return id;
fail:
@@ -3932,7 +3932,7 @@
vim_free(wp->w_match_head);
wp->w_match_head = m;
}
- redraw_later(SOME_VALID);
+ redraw_win_later(wp, SOME_VALID);
}
/*