fixup: 35 col resize to scroll screen

This commit is contained in:
Jan Edmund Lazo
2018-12-01 00:15:11 -05:00
parent 2479004c13
commit 5c3488c937

View File

@@ -117,46 +117,46 @@ local function test_cmdline(linegrid)
end) end)
it('but not with scrolled messages', function() it('but not with scrolled messages', function()
screen:try_resize(49,10) screen:try_resize(35,10)
feed(':echoerr doesnotexist<cr>') feed(':echoerr doesnotexist<cr>')
screen:expect{grid=[[ screen:expect{grid=[[
^ | |
{1:~ }| {1:~ }|
{1:~ }| {1:~ }|
{1:~ }| {1:~ }|
{1:~ }| {1:~ }|
{1:~ }| {3: }|
{1:~ }| {4:E121: Undefined variable: doesnotex}|
{1:~ }| {4:ist} |
{3:n }| {5:Press ENTER or type command to cont}|
{4:E121: Undefined variable: doesnotexist} | {5:inue}^ |
]]} ]]}
feed(':echoerr doesnotexist<cr>') feed(':echoerr doesnotexist<cr>')
screen:expect{grid=[[ screen:expect{grid=[[
^ | |
{1:~ }| {1:~ }|
{1:~ }| {3: }|
{1:~ }| {4:E121: Undefined variable: doesnotex}|
{1:~ }| {4:ist} |
{1:~ }| {5:Press ENTER or type command to cont}|
{1:~ }| {4:E121: Undefined variable: doesnotex}|
{1:~ }| {4:ist} |
{3:n }| {5:Press ENTER or type command to cont}|
{4:E121: Undefined variable: doesnotexist} | {5:inue}^ |
]]} ]]}
feed(':echoerr doesnotexist<cr>') feed(':echoerr doesnotexist<cr>')
screen:expect{grid=[[ screen:expect{grid=[[
^ | {4:E121: Undefined variable: doesnotex}|
{1:~ }| {4:ist} |
{1:~ }| {5:Press ENTER or type command to cont}|
{1:~ }| {4:E121: Undefined variable: doesnotex}|
{1:~ }| {4:ist} |
{1:~ }| {5:Press ENTER or type command to cont}|
{1:~ }| {4:E121: Undefined variable: doesnotex}|
{1:~ }| {4:ist} |
{3:n }| {5:Press ENTER or type command to cont}|
{4:E121: Undefined variable: doesnotexist} | {5:inue}^ |
]]} ]]}
feed('<cr>') feed('<cr>')
@@ -170,7 +170,7 @@ local function test_cmdline(linegrid)
{1:~ }| {1:~ }|
{1:~ }| {1:~ }|
{3:n }| {3:n }|
{4:E121: Undefined variable: doesnotexist} | |
]]} ]]}
end) end)
end) end)