Merge #10995 'paste: fix paste in terminal mode'

This commit is contained in:
Justin M. Keyes
2019-09-11 12:45:28 -07:00
2 changed files with 29 additions and 2 deletions

View File

@@ -193,7 +193,7 @@ paste = (function()
vim.api.nvim_input(line1)
vim.api.nvim_set_option('paste', false)
elseif mode ~= 'c' then -- Else: discard remaining cmdline-mode chunks.
if phase < 2 and mode ~= 'i' and mode ~= 'R' then
if phase < 2 and mode ~= 'i' and mode ~= 'R' and mode ~= 't' then
vim.api.nvim_put(lines, 'c', true, true)
-- XXX: Normal-mode: workaround bad cursor-placement after first chunk.
vim.api.nvim_command('normal! a')