aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/window.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2024-04-21 09:31:24 +0200
committerGitHub <noreply@github.com>2024-04-21 09:31:24 +0200
commitf42ab1dc4848eceab12c7180c2b9049da29a9ba6 (patch)
treefe46c69dad53636c83aaed9c0cf44d765087658c /src/nvim/window.c
parent344906a08f0972108eb912c87af32b275ecf318e (diff)
parentb5a38530ba18b324c739e1d087bd78e4a0a6d4b3 (diff)
downloadrneovim-f42ab1dc4848eceab12c7180c2b9049da29a9ba6.tar.gz
rneovim-f42ab1dc4848eceab12c7180c2b9049da29a9ba6.tar.bz2
rneovim-f42ab1dc4848eceab12c7180c2b9049da29a9ba6.zip
Merge pull request #27872 from luukvbaal/cmdheight
fix(ui): don't force 'cmdheight' to zero with ext_messages
Diffstat (limited to 'src/nvim/window.c')
-rw-r--r--src/nvim/window.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/nvim/window.c b/src/nvim/window.c
index ea879d450b..08889451ab 100644
--- a/src/nvim/window.c
+++ b/src/nvim/window.c
@@ -5899,10 +5899,6 @@ static void frame_setheight(frame_T *curfrp, int height)
if (curfrp->fr_parent == NULL) {
// topframe: can only change the command line height
- // Avoid doing so with external messages.
- if (ui_has(kUIMessages)) {
- return;
- }
if (height > ROWS_AVAIL) {
// If height is greater than the available space, try to create space for
// the frame by reducing 'cmdheight' if possible, while making sure
@@ -6241,12 +6237,6 @@ const char *did_set_winminwidth(optset_T *args FUNC_ATTR_UNUSED)
void win_drag_status_line(win_T *dragwin, int offset)
{
frame_T *fr = dragwin->w_frame;
-
- // Avoid changing command line height with external messages.
- if (fr->fr_next == NULL && ui_has(kUIMessages)) {
- return;
- }
-
frame_T *curfr = fr;
if (fr != topframe) { // more than one window
fr = fr->fr_parent;