diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2019-09-11 20:10:16 +0200 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2019-09-11 20:12:29 +0200 |
commit | ffa029ad1cc2f3ddc3f670f1c407deabbc1bec62 (patch) | |
tree | bc0ddf94c7be6cc1403d0408705822a1dccc8cc3 /test | |
parent | 6aed19b2bbe5fbc6df682d159fbc53e7e72c87ac (diff) | |
download | rneovim-ffa029ad1cc2f3ddc3f670f1c407deabbc1bec62.tar.gz rneovim-ffa029ad1cc2f3ddc3f670f1c407deabbc1bec62.tar.bz2 rneovim-ffa029ad1cc2f3ddc3f670f1c407deabbc1bec62.zip |
paste: fix paste in terminal mode
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/terminal/tui_spec.lua | 29 |
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 --} | |