aboutsummaryrefslogtreecommitdiff
path: root/test/functional
diff options
context:
space:
mode:
authorerw7 <erw7.github@gmail.com>2020-07-20 00:44:22 +0900
committerGitHub <noreply@github.com>2020-07-19 17:44:22 +0200
commit8e350c1c6922f9c678e83d97227e7edd84967571 (patch)
tree71914cb8842b3bcdc10b550d7eb61c3a8b5464b1 /test/functional
parent08efa7037e05ce229150d17db11b1b1c2419631f (diff)
downloadrneovim-8e350c1c6922f9c678e83d97227e7edd84967571.tar.gz
rneovim-8e350c1c6922f9c678e83d97227e7edd84967571.tar.bz2
rneovim-8e350c1c6922f9c678e83d97227e7edd84967571.zip
startup: fix stall issue with -D options (#12652)
fixes #12647.
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/core/startup_spec.lua25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/functional/core/startup_spec.lua b/test/functional/core/startup_spec.lua
index 394eb73187..9b0668f9e6 100644
--- a/test/functional/core/startup_spec.lua
+++ b/test/functional/core/startup_spec.lua
@@ -358,6 +358,31 @@ describe('sysinit', function()
eq('loaded 1 xdg 0 vim 1',
eval('printf("loaded %d xdg %d vim %d", g:loaded, get(g:, "xdg", 0), get(g:, "vim", 0))'))
end)
+
+ it('fixed hang issue with -D (#12647)', function()
+ local screen
+ screen = Screen.new(60, 6)
+ screen:attach()
+ command([[let g:id = termopen('"]]..nvim_prog..
+ [[" -u NONE -i NONE --cmd "set noruler" -D')]])
+ screen:expect([[
+ ^ |
+ Entering Debug mode. Type "cont" to continue. |
+ cmd: augroup nvim_terminal |
+ > |
+ <" -u NONE -i NONE --cmd "set noruler" -D 1,0-1 All|
+ |
+ ]])
+ command([[call chansend(g:id, "cont\n")]])
+ screen:expect([[
+ ^ |
+ ~ |
+ [No Name] |
+ |
+ <" -u NONE -i NONE --cmd "set noruler" -D 1,0-1 All|
+ |
+ ]])
+ end)
end)
describe('clean', function()