aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/window.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-08-23 22:00:19 +0800
committerGitHub <noreply@github.com>2022-08-23 22:00:19 +0800
commit6cc6e11929ad76a2dc5204aed95cb9ed1dafde23 (patch)
treeba76d33bfbf687d0d64038910218e37d0efd9edc /src/nvim/api/window.c
parent779a25f040704e4f1b56abedc901ec4f9829bb27 (diff)
downloadrneovim-6cc6e11929ad76a2dc5204aed95cb9ed1dafde23.tar.gz
rneovim-6cc6e11929ad76a2dc5204aed95cb9ed1dafde23.tar.bz2
rneovim-6cc6e11929ad76a2dc5204aed95cb9ed1dafde23.zip
vim-patch:9.0.0206: redraw flags are not named specifically (#19913)
Problem: Redraw flags are not named specifically. Solution: Prefix "UPD_" to the flags, for UPDate_screen(). https://github.com/vim/vim/commit/a4d158b3c839e96ed98ff87c7b7124ff4518c4ff
Diffstat (limited to 'src/nvim/api/window.c')
-rw-r--r--src/nvim/api/window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/api/window.c b/src/nvim/api/window.c
index 580dfd8639..5203003369 100644
--- a/src/nvim/api/window.c
+++ b/src/nvim/api/window.c
@@ -118,7 +118,7 @@ void nvim_win_set_cursor(Window window, ArrayOf(Integer, 2) pos, Error *err)
// make sure cursor is in visible range even if win != curwin
update_topline_win(win);
- redraw_later(win, VALID);
+ redraw_later(win, UPD_VALID);
win->w_redr_status = true;
}
@@ -449,5 +449,5 @@ void nvim_win_set_hl_ns(Window window, Integer ns_id, Error *err)
win->w_ns_hl = (NS)ns_id;
win->w_hl_needs_update = true;
- redraw_later(win, NOT_VALID);
+ redraw_later(win, UPD_NOT_VALID);
}