aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/window.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-12-30 16:27:26 -0500
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-12-30 16:30:58 -0500
commit0e7baed2195fec8e99df69112e464791c02b2555 (patch)
tree4196fe22b717da82e68675d38e7e19e750018d8f /src/nvim/window.c
parent6e6544d645f9a9c151a2e027e23d8f79ecd8f7c9 (diff)
downloadrneovim-0e7baed2195fec8e99df69112e464791c02b2555.tar.gz
rneovim-0e7baed2195fec8e99df69112e464791c02b2555.tar.bz2
rneovim-0e7baed2195fec8e99df69112e464791c02b2555.zip
vim-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. https://github.com/vim/vim/commit/4ef18dcc2e3a6a9aea2dc90bbdb742c3c9231394
Diffstat (limited to 'src/nvim/window.c')
-rw-r--r--src/nvim/window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/window.c b/src/nvim/window.c
index 5d4332c75a..79d7a8acba 100644
--- a/src/nvim/window.c
+++ b/src/nvim/window.c
@@ -6622,7 +6622,7 @@ int match_add(win_T *wp, const char *const grp, const char *const pat,
prev->next = m;
m->next = cur;
- redraw_later(rtype);
+ redraw_win_later(wp, rtype);
return id;
fail:
@@ -6698,7 +6698,7 @@ void clear_matches(win_T *wp)
xfree(wp->w_match_head);
wp->w_match_head = m;
}
- redraw_later(SOME_VALID);
+ redraw_win_later(wp, SOME_VALID);
}
/*