mirror of
https://github.com/neovim/neovim.git
synced 2026-08-28 18:11:47 +00:00
feat(extui): don't enter pager for routed message #34679
Problem: Messages routed to the pager to be shown in full, enter the
pager automatically, yielding another "press-q-prompt".
Solution: Only enter the pager when requested explicitly. Otherwise,
close the pager on the next typed mapping, unless that mapping
entered the pager.
This commit is contained in:
@@ -54,4 +54,38 @@ describe('cmdline2', function()
|
||||
/foo^ |
|
||||
]])
|
||||
end)
|
||||
|
||||
it('block mode', function()
|
||||
feed(':if 1<CR>')
|
||||
screen:expect([[
|
||||
|
|
||||
{1:~ }|*11
|
||||
{16::}{15:if} {26:1} |
|
||||
{16::} ^ |
|
||||
]])
|
||||
feed('echo "foo"<CR>')
|
||||
screen:expect([[
|
||||
|
|
||||
{1:~ }|*9
|
||||
{16::}{15:if} {26:1} |
|
||||
{16::} {15:echo} {26:"foo"} |
|
||||
{15:foo} |
|
||||
{16::} ^ |
|
||||
]])
|
||||
feed('endif')
|
||||
screen:expect([[
|
||||
|
|
||||
{1:~ }|*9
|
||||
{16::}{15:if} {26:1} |
|
||||
{16::} {15:echo} {26:"foo"} |
|
||||
{15:foo} |
|
||||
{16::} {15:endif}^ |
|
||||
]])
|
||||
feed('<CR>')
|
||||
screen:expect([[
|
||||
^ |
|
||||
{1:~ }|*12
|
||||
|
|
||||
]])
|
||||
end)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user