Fix issue where test fails

This commit is contained in:
erw7 2019-04-14 00:45:20 +09:00
parent e4c85c362d
commit 89c2747eed
2 changed files with 5 additions and 3 deletions

View File

@ -467,7 +467,7 @@ int main(int argc, char **argv)
if (exmode_active || early_ui) { if (exmode_active || early_ui) {
// Don't clear the screen when starting in Ex mode, or when an // Don't clear the screen when starting in Ex mode, or when an
// embedding UI might have displayed messages // embedding UI might have displayed messages
must_redraw = CLEAR; must_redraw = VALID;
} else { } else {
screenclear(); // clear screen screenclear(); // clear screen
TIME_MSG("clearing screen"); TIME_MSG("clearing screen");

View File

@ -46,7 +46,7 @@ describe('startup', function()
]]) ]])
end) end)
it('in a TTY: has("ttyin")==1 has("ttyout")==1', function() it('in a TTY: has("ttyin")==1 has("ttyout")==1', function()
local screen = Screen.new(25, 3) local screen = Screen.new(25, 4)
screen:attach() screen:attach()
if iswin() then if iswin() then
command([[set shellcmdflag=/s\ /c shellxquote=\"]]) command([[set shellcmdflag=/s\ /c shellxquote=\"]])
@ -58,6 +58,7 @@ describe('startup', function()
..[[, shellescape(v:progpath))]]) ..[[, shellescape(v:progpath))]])
screen:expect([[ screen:expect([[
^ | ^ |
~ |
1 1 | 1 1 |
| |
]]) ]])
@ -96,7 +97,7 @@ describe('startup', function()
end) end)
end) end)
it('input from pipe (implicit) #7679', function() it('input from pipe (implicit) #7679', function()
local screen = Screen.new(25, 3) local screen = Screen.new(25, 4)
screen:attach() screen:attach()
if iswin() then if iswin() then
command([[set shellcmdflag=/s\ /c shellxquote=\"]]) command([[set shellcmdflag=/s\ /c shellxquote=\"]])
@ -109,6 +110,7 @@ describe('startup', function()
..[[, shellescape(v:progpath))]]) ..[[, shellescape(v:progpath))]])
screen:expect([[ screen:expect([[
^foo | ^foo |
~ |
0 1 | 0 1 |
| |
]]) ]])