summaryrefslogtreecommitdiffstats
path: root/src/drawscreen.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/drawscreen.c')
-rw-r--r--src/drawscreen.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/drawscreen.c b/src/drawscreen.c
index aa5b8f7eb7..ecbdd9f0f2 100644
--- a/src/drawscreen.c
+++ b/src/drawscreen.c
@@ -831,8 +831,9 @@ after_updating_screen(int may_resize_shell UNUSED)
handle_any_postponed_drop();
#endif
- // in case it was changed in dont_use_message_window()
- cmdline_row = Rows - p_ch;
+ if (p_ch == 0)
+ // in case it was changed in dont_use_message_window()
+ cmdline_row = Rows;
}
/*