aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerw7 <erw7.github@gmail.com>2019-04-14 00:45:20 +0900
committererw7 <erw7.github@gmail.com>2019-06-04 08:49:27 +0900
commit89c2747eed48d69fa75315e2db8c682f2b027471 (patch)
tree8fa8d8d4f678eefea0888fe297e4d35e57f0a9f1
parente4c85c362d1b25847dfa92a28197c5d4472a4c17 (diff)
downloadrneovim-89c2747eed48d69fa75315e2db8c682f2b027471.tar.gz
rneovim-89c2747eed48d69fa75315e2db8c682f2b027471.tar.bz2
rneovim-89c2747eed48d69fa75315e2db8c682f2b027471.zip
Fix issue where test fails
-rw-r--r--src/nvim/main.c2
-rw-r--r--test/functional/core/startup_spec.lua6
2 files changed, 5 insertions, 3 deletions
diff --git a/src/nvim/main.c b/src/nvim/main.c
index e7a6d42251..e3e7949e79 100644
--- a/src/nvim/main.c
+++ b/src/nvim/main.c
@@ -467,7 +467,7 @@ int main(int argc, char **argv)
if (exmode_active || early_ui) {
// Don't clear the screen when starting in Ex mode, or when an
// embedding UI might have displayed messages
- must_redraw = CLEAR;
+ must_redraw = VALID;
} else {
screenclear(); // clear screen
TIME_MSG("clearing screen");
diff --git a/test/functional/core/startup_spec.lua b/test/functional/core/startup_spec.lua
index f77af836a6..45bfa93b56 100644
--- a/test/functional/core/startup_spec.lua
+++ b/test/functional/core/startup_spec.lua
@@ -46,7 +46,7 @@ describe('startup', function()
]])
end)
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()
if iswin() then
command([[set shellcmdflag=/s\ /c shellxquote=\"]])
@@ -58,6 +58,7 @@ describe('startup', function()
..[[, shellescape(v:progpath))]])
screen:expect([[
^ |
+ ~ |
1 1 |
|
]])
@@ -96,7 +97,7 @@ describe('startup', function()
end)
end)
it('input from pipe (implicit) #7679', function()
- local screen = Screen.new(25, 3)
+ local screen = Screen.new(25, 4)
screen:attach()
if iswin() then
command([[set shellcmdflag=/s\ /c shellxquote=\"]])
@@ -109,6 +110,7 @@ describe('startup', function()
..[[, shellescape(v:progpath))]])
screen:expect([[
^foo |
+ ~ |
0 1 |
|
]])