diff src/drawscreen.c @ 29946:af2564a6da5b v9.0.0311

patch 9.0.0311: test for hit-Enter prompt fails Commit: https://github.com/vim/vim/commit/926218b5dad0dcdc273ccd92436a72f038d222c4 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Aug 28 23:36:52 2022 +0100 patch 9.0.0311: test for hit-Enter prompt fails Problem: Test for hit-Enter prompt fails. Solution: Only reset cmdline_row when 'cmdheight' is zero.
author Bram Moolenaar <Bram@vim.org>
date Mon, 29 Aug 2022 00:45:03 +0200
parents 991bec040ce9
children 451ec8a09a63
line wrap: on
line diff
--- a/src/drawscreen.c
+++ b/src/drawscreen.c
@@ -831,8 +831,9 @@ after_updating_screen(int may_resize_she
     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;
 }
 
 /*