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 <ashabkhan2000@gmail.com>
This commit is contained in:
ashab-k
2026-01-28 04:55:36 +05:30
committed by GitHub
parent 3e6db5b2ec
commit 027b7d6bbb
2 changed files with 4 additions and 13 deletions

View File

@@ -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();
}

View File

@@ -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:<Enter>} for information |
|*2
{3: }|
|
{6:Press ENTER or type command to continue}^ |
|*4
^ |
]])
feed('<CR>')
assert_alive()
@@ -2189,14 +2187,6 @@ describe('ui/ext_messages', function()
type :help Kuwasha{18:<Enter>} for information |
|*5
]],
cmdline = {
{
content = { { '' } },
hl = 'MoreMsg',
pos = 0,
prompt = 'Press any key to continue',
},
},
}
feed('<cr>')