mirror of
https://github.com/neovim/neovim.git
synced 2025-12-07 23:22:39 +00:00
msg: do not scroll entire screen (#8088)
This commit is contained in:
committed by
Justin M. Keyes
parent
362346f563
commit
98e7112390
@@ -355,7 +355,8 @@ describe('Screen', function()
|
||||
]])
|
||||
end)
|
||||
|
||||
it('execute command with multi-line output', function()
|
||||
it('execute command with multi-line output without msgsep', function()
|
||||
command("set display-=msgsep")
|
||||
feed(':ls<cr>')
|
||||
screen:expect([[
|
||||
{0:~ }|
|
||||
@@ -375,6 +376,28 @@ describe('Screen', function()
|
||||
]])
|
||||
feed('<cr>') -- skip the "Press ENTER..." state or tests will hang
|
||||
end)
|
||||
|
||||
it('execute command with multi-line output and with msgsep', function()
|
||||
command("set display+=msgsep")
|
||||
feed(':ls<cr>')
|
||||
screen:expect([[
|
||||
|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{1: }|
|
||||
:ls |
|
||||
1 %a "[No Name]" line 1 |
|
||||
{7:Press ENTER or type command to continue}^ |
|
||||
]])
|
||||
feed('<cr>') -- skip the "Press ENTER..." state or tests will hang
|
||||
end)
|
||||
end)
|
||||
|
||||
describe('scrolling and clearing', function()
|
||||
@@ -573,6 +596,7 @@ describe('Screen', function()
|
||||
command('nnoremap <F1> :echo "TEST"<CR>')
|
||||
feed(':ls<CR>')
|
||||
screen:expect([[
|
||||
|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
@@ -582,8 +606,7 @@ describe('Screen', function()
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{1: }|
|
||||
:ls |
|
||||
1 %a "[No Name]" line 1 |
|
||||
{7:Press ENTER or type command to continue}^ |
|
||||
|
||||
Reference in New Issue
Block a user