neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 027b7d6bbb4f164b95f1588b250a02020d85b029
parent 3e6db5b2ec6fc152f70246f58654d762527c9ef2
Author: ashab-k <145352237+ashab-k@users.noreply.github.com>
Date:   Wed, 28 Jan 2026 04:55:36 +0530

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>
Diffstat:
Msrc/nvim/version.c | 3++-
Mtest/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 @@ -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 @@ -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>')