mirror of
https://github.com/neovim/neovim.git
synced 2026-07-11 11:59:43 +00:00
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:
@@ -19,6 +19,7 @@
|
|||||||
#include "nvim/charset.h"
|
#include "nvim/charset.h"
|
||||||
#include "nvim/drawscreen.h"
|
#include "nvim/drawscreen.h"
|
||||||
#include "nvim/ex_cmds_defs.h"
|
#include "nvim/ex_cmds_defs.h"
|
||||||
|
#include "nvim/getchar.h"
|
||||||
#include "nvim/gettext_defs.h"
|
#include "nvim/gettext_defs.h"
|
||||||
#include "nvim/globals.h"
|
#include "nvim/globals.h"
|
||||||
#include "nvim/grid.h"
|
#include "nvim/grid.h"
|
||||||
@@ -4207,5 +4208,5 @@ void ex_intro(exarg_T *eap)
|
|||||||
// TODO(bfredl): use msg_grid instead!
|
// TODO(bfredl): use msg_grid instead!
|
||||||
screenclear();
|
screenclear();
|
||||||
intro_message(true);
|
intro_message(true);
|
||||||
wait_return(true);
|
plain_vgetc();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2054,10 +2054,8 @@ vimComment xxx match /\s"[^\-:.%#=*].*$/ms=s+1,lc=1 excludenl contains=@vim
|
|||||||
|
|
|
|
||||||
Help poor children in Uganda! |
|
Help poor children in Uganda! |
|
||||||
type :help Kuwasha{18:<Enter>} for information |
|
type :help Kuwasha{18:<Enter>} for information |
|
||||||
|*2
|
|*4
|
||||||
{3: }|
|
^ |
|
||||||
|
|
|
||||||
{6:Press ENTER or type command to continue}^ |
|
|
||||||
]])
|
]])
|
||||||
feed('<CR>')
|
feed('<CR>')
|
||||||
assert_alive()
|
assert_alive()
|
||||||
@@ -2189,14 +2187,6 @@ describe('ui/ext_messages', function()
|
|||||||
type :help Kuwasha{18:<Enter>} for information |
|
type :help Kuwasha{18:<Enter>} for information |
|
||||||
|*5
|
|*5
|
||||||
]],
|
]],
|
||||||
cmdline = {
|
|
||||||
{
|
|
||||||
content = { { '' } },
|
|
||||||
hl = 'MoreMsg',
|
|
||||||
pos = 0,
|
|
||||||
prompt = 'Press any key to continue',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
feed('<cr>')
|
feed('<cr>')
|
||||||
|
|||||||
Reference in New Issue
Block a user