aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2019-09-25 09:15:33 +0200
committerGitHub <noreply@github.com>2019-09-25 09:15:33 +0200
commit0571145c40b0a2ae106acc43891c2680c76b8383 (patch)
tree45e76c48bc09fed9725eaa61af9fb7062c41ed2e /test
parentdb6b4b677d611a2891a5b6d686e485aea08a8f81 (diff)
downloadrneovim-0571145c40b0a2ae106acc43891c2680c76b8383.tar.gz
rneovim-0571145c40b0a2ae106acc43891c2680c76b8383.tar.bz2
rneovim-0571145c40b0a2ae106acc43891c2680c76b8383.zip
paste: fix handling of "<" in cmdline (#11094)
Fixes https://github.com/neovim/neovim/issues/11088.
Diffstat (limited to 'test')
-rw-r--r--test/functional/terminal/tui_spec.lua17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/functional/terminal/tui_spec.lua b/test/functional/terminal/tui_spec.lua
index f70b630442..89468359ef 100644
--- a/test/functional/terminal/tui_spec.lua
+++ b/test/functional/terminal/tui_spec.lua
@@ -578,6 +578,23 @@ describe('TUI', function()
expect_child_buf_lines({expected})
end)
+ it('paste: less-than sign in cmdline #11088', function()
+ local expected = '<'
+ feed_data(':')
+ wait_for_mode('c')
+ -- "bracketed paste"
+ feed_data('\027[200~'..expected..'\027[201~')
+ screen:expect{grid=[[
+ |
+ {4:~ }|
+ {4:~ }|
+ {4:~ }|
+ {5:[No Name] }|
+ :<{1: } |
+ {3:-- TERMINAL --} |
+ ]]}
+ end)
+
it('paste: big burst of input', function()
feed_data(':set ruler\n')
local t = {}