From 027b7d6bbb4f164b95f1588b250a02020d85b029 Mon Sep 17 00:00:00 2001 From: ashab-k <145352237+ashab-k@users.noreply.github.com> Date: Wed, 28 Jan 2026 04:55:36 +0530 Subject: [PATCH] fix(ui): :intro not displayed with ui2 #37472 Problem: The :intro fails to display in ui2 because wait_return(true) triggers a full redraw. Furthermore statuslines are visible when using :intro Solution: Replace wait_return() with plain_vgetc(). This works with old and ui2 while also removing the unnecessary statusline and "press ENTER" prompt. Updates tests to work with new behaviour. Signed-off-by: ashab-k --- src/nvim/version.c | 3 ++- test/functional/ui/messages_spec.lua | 14 ++------------ 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/src/nvim/version.c b/src/nvim/version.c index 62a12eeb92..60b778d53b 100644 --- a/src/nvim/version.c +++ b/src/nvim/version.c @@ -19,6 +19,7 @@ #include "nvim/charset.h" #include "nvim/drawscreen.h" #include "nvim/ex_cmds_defs.h" +#include "nvim/getchar.h" #include "nvim/gettext_defs.h" #include "nvim/globals.h" #include "nvim/grid.h" @@ -4207,5 +4208,5 @@ void ex_intro(exarg_T *eap) // TODO(bfredl): use msg_grid instead! screenclear(); intro_message(true); - wait_return(true); + plain_vgetc(); } diff --git a/test/functional/ui/messages_spec.lua b/test/functional/ui/messages_spec.lua index adc090917a..2824388aa6 100644 --- a/test/functional/ui/messages_spec.lua +++ b/test/functional/ui/messages_spec.lua @@ -2054,10 +2054,8 @@ vimComment xxx match /\s"[^\-:.%#=*].*$/ms=s+1,lc=1 excludenl contains=@vim | Help poor children in Uganda! | type :help Kuwasha{18:} for information | - |*2 - {3: }| - | - {6:Press ENTER or type command to continue}^ | + |*4 + ^ | ]]) feed('') assert_alive() @@ -2189,14 +2187,6 @@ describe('ui/ext_messages', function() type :help Kuwasha{18:} for information | |*5 ]], - cmdline = { - { - content = { { '' } }, - hl = 'MoreMsg', - pos = 0, - prompt = 'Press any key to continue', - }, - }, } feed('')