]> granicus.if.org Git - vim/commitdiff
patch 9.0.0311: test for hit-Enter prompt fails v9.0.0311
authorBram Moolenaar <Bram@vim.org>
Sun, 28 Aug 2022 22:36:52 +0000 (23:36 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 28 Aug 2022 22:36:52 +0000 (23:36 +0100)
Problem:    Test for hit-Enter prompt fails.
Solution:   Only reset cmdline_row when 'cmdheight' is zero.

src/drawscreen.c
src/version.c

index aa5b8f7eb7dddf0dd801b1e75387a960e1d008f8..ecbdd9f0f2bab83813a546ebdad622133086031f 100644 (file)
@@ -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;
 }
 
 /*
index d8a68626ca8271ae8ea1e596b08b2623bf75fdeb..e6ecb979635ed08252aed1a83ab321aafb11373f 100644 (file)
@@ -707,6 +707,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    311,
 /**/
     310,
 /**/