changeset 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 3ddfeb5fd870
children 85fe535ba7ff
files src/drawscreen.c src/version.c
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
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;
 }
 
 /*
--- a/src/version.c
+++ b/src/version.c
@@ -708,6 +708,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    311,
+/**/
     310,
 /**/
     309,