# HG changeset patch # User Bram Moolenaar # Date 1661726703 -7200 # Node ID af2564a6da5befc38b36e306d12ee39dd8948f9a # Parent 3ddfeb5fd870ba80a9f142a70074e6f8673bf3cc patch 9.0.0311: test for hit-Enter prompt fails Commit: https://github.com/vim/vim/commit/926218b5dad0dcdc273ccd92436a72f038d222c4 Author: Bram Moolenaar 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. diff --git a/src/drawscreen.c b/src/drawscreen.c --- 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; } /* diff --git a/src/version.c b/src/version.c --- 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,