aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-08-05 03:34:38 +0200
committerJustin M. Keyes <justinkz@gmail.com>2017-08-05 21:32:34 +0200
commita31482db4dcaa479b09e2683037fee3d6ee56408 (patch)
treec47a6572dba872e5fe053b9883e37aa9c59adcf9 /test/functional/ui
parentc6954437277175c9e2b8eb7e7e753314725aef8b (diff)
downloadrneovim-a31482db4dcaa479b09e2683037fee3d6ee56408.tar.gz
rneovim-a31482db4dcaa479b09e2683037fee3d6ee56408.tar.bz2
rneovim-a31482db4dcaa479b09e2683037fee3d6ee56408.zip
terminal: block redraw during c_CTRL-D
Unlike the normal wildmenu, the CTRL-D wild-list is not restored by statusline redraw. (Semantics: ^D is controlled by 'wildoptions' option, so it's in the "wild..." family.) TODO: externalize the c_CTRL-D wild-list.
Diffstat (limited to 'test/functional/ui')
-rw-r--r--test/functional/ui/wildmode_spec.lua26
1 files changed, 24 insertions, 2 deletions
diff --git a/test/functional/ui/wildmode_spec.lua b/test/functional/ui/wildmode_spec.lua
index 154f508924..42c92c4c2c 100644
--- a/test/functional/ui/wildmode_spec.lua
+++ b/test/functional/ui/wildmode_spec.lua
@@ -66,10 +66,10 @@ describe("'wildmenu'", function()
else
feed([[:terminal for i in $(seq 1 5000); do printf 'foo\nfoo\nfoo\n'; sleep 0.1; done<cr>]])
end
- screen:sleep(50) -- Allow some output.
+
feed([[<C-\><C-N>gg]])
feed([[:sign <Tab>]]) -- Invoke wildmenu.
- screen:sleep(50) -- Allow some output.
+ screen:sleep(50) -- Allow some terminal output.
screen:expect([[
foo |
foo |
@@ -77,6 +77,28 @@ describe("'wildmenu'", function()
define jump list > |
:sign define^ |
]])
+
+ -- cmdline CTRL-D display should also be preserved.
+ feed([[<C-\><C-N>]])
+ feed([[:sign <C-D>]]) -- Invoke cmdline CTRL-D.
+ screen:sleep(50) -- Allow some terminal output.
+ screen:expect([[
+ :sign |
+ define place |
+ jump undefine |
+ list unplace |
+ :sign ^ |
+ ]])
+
+ -- Exiting cmdline should show the buffer.
+ feed([[<C-\><C-N>]])
+ screen:expect([[
+ ^foo |
+ foo |
+ foo |
+ foo |
+ |
+ ]])
end)
it('ignores :redrawstatus called from a timer #7108', function()