aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-05-05 18:33:52 +0200
committerGitHub <noreply@github.com>2022-05-05 18:33:52 +0200
commit7fa8109881c22db7eced68a2d55118c369a86adf (patch)
treef544682e4675ba5853fec1ded648a52460809d44 /src
parent1eecea8449557572295837d3213b2fdb42ce74ef (diff)
parentb5957c3c3243c247bc5bec44e44cdaf8230a6c5d (diff)
downloadrneovim-7fa8109881c22db7eced68a2d55118c369a86adf.tar.gz
rneovim-7fa8109881c22db7eced68a2d55118c369a86adf.tar.bz2
rneovim-7fa8109881c22db7eced68a2d55118c369a86adf.zip
Merge pull request #18314 from tk-shirasaka/global-statusline-on-ext_messages
fix: display global statusline correctly with ext_messages
Diffstat (limited to 'src')
-rw-r--r--src/nvim/window.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/nvim/window.c b/src/nvim/window.c
index 6bae92c909..887df31650 100644
--- a/src/nvim/window.c
+++ b/src/nvim/window.c
@@ -5490,7 +5490,7 @@ void win_setheight_win(int height, win_T *win)
}
}
cmdline_row = row;
- p_ch = MAX(Rows - cmdline_row, 1);
+ p_ch = MAX(Rows - cmdline_row, ui_has(kUIMessages) ? 0 : 1);
curtab->tp_ch_used = p_ch;
msg_row = row;
msg_col = 0;
@@ -5998,10 +5998,7 @@ void win_drag_status_line(win_T *dragwin, int offset)
clear_cmdline = true;
}
cmdline_row = row;
- p_ch = Rows - cmdline_row;
- if (p_ch < 1) {
- p_ch = 1;
- }
+ p_ch = MAX(Rows - cmdline_row, ui_has(kUIMessages) ? 0 : 1);
curtab->tp_ch_used = p_ch;
redraw_all_later(SOME_VALID);
showmode();