diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-08-27 05:19:25 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-08-27 22:14:52 +0200 |
commit | 87389c6a57cf9fa91746503c479cdbea348030b9 (patch) | |
tree | 97f9cfa3d464b62add16fd2994a44935c567b005 /test/functional/terminal/tui_spec.lua | |
parent | ed60015266356b3c0c42aa34698d9287f22fcba1 (diff) | |
download | rneovim-87389c6a57cf9fa91746503c479cdbea348030b9.tar.gz rneovim-87389c6a57cf9fa91746503c479cdbea348030b9.tar.bz2 rneovim-87389c6a57cf9fa91746503c479cdbea348030b9.zip |
paste: make vim.paste() "public"
Diffstat (limited to 'test/functional/terminal/tui_spec.lua')
-rw-r--r-- | test/functional/terminal/tui_spec.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/terminal/tui_spec.lua b/test/functional/terminal/tui_spec.lua index e7db39b5d0..aafbbc04b1 100644 --- a/test/functional/terminal/tui_spec.lua +++ b/test/functional/terminal/tui_spec.lua @@ -326,8 +326,8 @@ describe('TUI', function() it('paste: recovers from vim.paste() failure', function() child_session:request('nvim_execute_lua', [[ - _G.save_paste_fn = vim._paste - vim._paste = function(lines, phase) error("fake fail") end + _G.save_paste_fn = vim.paste + vim.paste = function(lines, phase) error("fake fail") end ]], {}) -- Start pasting... feed_data('\027[200~line 1\nline 2\n') @@ -360,7 +360,7 @@ describe('TUI', function() ]]} -- Paste works if vim.paste() succeeds. child_session:request('nvim_execute_lua', [[ - vim._paste = _G.save_paste_fn + vim.paste = _G.save_paste_fn ]], {}) feed_data('\027[200~line A\nline B\n\027[201~') feed_data('\n') -- <Enter> |