diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-08-30 09:15:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-30 09:15:43 +0200 |
commit | 06e693cdc9e6f960dfbc4594f0d80265589ce7c3 (patch) | |
tree | a134ef031cb0751692e71928d246a565403d9c87 /test/functional/terminal/tui_spec.lua | |
parent | 4b8a16153e79644a5df9f6dc94215ac009c26c33 (diff) | |
parent | f5fd699c527945d795dab9f3529333df6d0561d0 (diff) | |
download | rneovim-06e693cdc9e6f960dfbc4594f0d80265589ce7c3.tar.gz rneovim-06e693cdc9e6f960dfbc4594f0d80265589ce7c3.tar.bz2 rneovim-06e693cdc9e6f960dfbc4594f0d80265589ce7c3.zip |
Merge #10884 'API: nvim_paste: add `crlf` parameter'
Diffstat (limited to 'test/functional/terminal/tui_spec.lua')
-rw-r--r-- | test/functional/terminal/tui_spec.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/functional/terminal/tui_spec.lua b/test/functional/terminal/tui_spec.lua index 6ec6a41807..8d8c0e3647 100644 --- a/test/functional/terminal/tui_spec.lua +++ b/test/functional/terminal/tui_spec.lua @@ -400,6 +400,17 @@ describe('TUI', function() ]]} end) + it('paste: vim.paste() cancel (retval=false) #10865', function() + -- This test only exercises the "cancel" case. Use-case would be "dangling + -- paste", but that is not implemented yet. #10865 + child_session:request('nvim_execute_lua', [[ + vim.paste = function(lines, phase) return false end + ]], {}) + feed_data('\027[200~line A\nline B\n\027[201~') + feed_data('ifoo\n\027\000') + expect_child_buf_lines({'foo',''}) + end) + it("paste: 'nomodifiable' buffer", function() child_session:request('nvim_command', 'set nomodifiable') feed_data('\027[200~fail 1\nfail 2\n\027[201~') |