aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-09-11 12:45:28 -0700
committerJustin M. Keyes <justinkz@gmail.com>2019-09-11 12:45:28 -0700
commitc8223e1618c4510f9eff13df509c6da95f869cc6 (patch)
tree0e73e8ef5fe40d1215dfe4647742fff2e58f1fde /test
parent6aed19b2bbe5fbc6df682d159fbc53e7e72c87ac (diff)
parentffa029ad1cc2f3ddc3f670f1c407deabbc1bec62 (diff)
downloadrneovim-c8223e1618c4510f9eff13df509c6da95f869cc6.tar.gz
rneovim-c8223e1618c4510f9eff13df509c6da95f869cc6.tar.bz2
rneovim-c8223e1618c4510f9eff13df509c6da95f869cc6.zip
Merge #10995 'paste: fix paste in terminal mode'
Diffstat (limited to 'test')
-rw-r--r--test/functional/terminal/tui_spec.lua29
1 files changed, 28 insertions, 1 deletions
diff --git a/test/functional/terminal/tui_spec.lua b/test/functional/terminal/tui_spec.lua
index 3d9623a158..789f5d4c2f 100644
--- a/test/functional/terminal/tui_spec.lua
+++ b/test/functional/terminal/tui_spec.lua
@@ -306,6 +306,33 @@ describe('TUI', function()
expect_child_buf_lines({''})
end)
+ it('paste: terminal mode', function()
+ feed_data(':set statusline=^^^^^^^\n')
+ feed_data(':terminal '..nvim_dir..'/tty-test\n')
+ feed_data('i')
+ screen:expect{grid=[[
+ tty ready |
+ {1: } |
+ |
+ |
+ {5:^^^^^^^ }|
+ {3:-- TERMINAL --} |
+ {3:-- TERMINAL --} |
+ ]]}
+ feed_data('\027[200~')
+ feed_data('hallo')
+ feed_data('\027[201~')
+ screen:expect{grid=[[
+ tty ready |
+ hallo{1: } |
+ |
+ |
+ {5:^^^^^^^ }|
+ {3:-- TERMINAL --} |
+ {3:-- TERMINAL --} |
+ ]]}
+ end)
+
it('paste: normal-mode (+CRLF #10872)', function()
feed_data(':set ruler')
wait_for_mode('c')
@@ -512,7 +539,7 @@ describe('TUI', function()
|
{4:~ }|
{5: }|
- {8:paste: Error executing lua: vim.lua:196: Vim:E21: }|
+ {8:paste: Error executing lua: vim.lua:197: Vim:E21: }|
{8:Cannot make changes, 'modifiable' is off} |
{10:Press ENTER or type command to continue}{1: } |
{3:-- TERMINAL --} |