aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/functional/core/startup_spec.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/functional/core/startup_spec.lua b/test/functional/core/startup_spec.lua
index ae5e2b4115..5f18b902fb 100644
--- a/test/functional/core/startup_spec.lua
+++ b/test/functional/core/startup_spec.lua
@@ -122,6 +122,18 @@ describe('startup', function()
{ 'ohyeah', '' }))
end)
+ it('goes to buffer 2 if stdin is empty #8561', function()
+ eq('\r\n 1u# "[No Name]" line 1\r\n 2 %a "file1" line 0\r\n 3 "file2" line 0',
+ funcs.system({nvim_prog, '-n', '-u', 'NONE', '-i', 'NONE', '--headless',
+ '+ls!',
+ '+qall!',
+ '-',
+ 'file1',
+ 'file2',
+ },
+ { '' }))
+ end)
+
it('-e/-E interactive #7679', function()
clear('-e')
local screen = Screen.new(25, 3)