aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/window.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-10-01 21:47:35 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-10-02 22:31:55 -0400
commit25513049b3c3f9276dfa560ef0920f3ed6cc5f2f (patch)
tree999ab47630e6b3b393a4a518aae470eb5f88008b /src/nvim/window.c
parent72914cd7f21570a725fdace9c9fe2b171ec4c107 (diff)
downloadrneovim-25513049b3c3f9276dfa560ef0920f3ed6cc5f2f.tar.gz
rneovim-25513049b3c3f9276dfa560ef0920f3ed6cc5f2f.tar.bz2
rneovim-25513049b3c3f9276dfa560ef0920f3ed6cc5f2f.zip
vim-patch:8.2.1780: statusline not updated when splitting windows
Problem: Statusline not updated when splitting windows. Solution: Call status_redraw_all(). (Jason Franklin, closes vim/vim#5496) https://github.com/vim/vim/commit/668008be66326ed9e5b1122abede34ed3d2de2d8
Diffstat (limited to 'src/nvim/window.c')
-rw-r--r--src/nvim/window.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/nvim/window.c b/src/nvim/window.c
index 6608deb231..e53570edd8 100644
--- a/src/nvim/window.c
+++ b/src/nvim/window.c
@@ -1490,13 +1490,11 @@ int win_split_ins(int size, int flags, win_T *new_wp, int dir)
if (flags & (WSP_TOP | WSP_BOT))
(void)win_comp_pos();
- /*
- * Both windows need redrawing
- */
+ // Both windows need redrawing. Update all status lines, in case they
+ // show something related to the window count or position.
redraw_win_later(wp, NOT_VALID);
- wp->w_redr_status = TRUE;
redraw_win_later(oldwin, NOT_VALID);
- oldwin->w_redr_status = TRUE;
+ status_redraw_all();
if (need_status) {
msg_row = Rows - 1;