paste: fix paste in terminal mode

This commit is contained in:
Björn Linse
2019-09-11 20:10:16 +02:00
parent 6aed19b2bb
commit ffa029ad1c
2 changed files with 31 additions and 2 deletions

View File

@@ -196,7 +196,9 @@ paste = (function()
if phase < 2 and mode ~= 'i' and mode ~= 'R' 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')
if mode ~= 't' then
vim.api.nvim_command('normal! a')
end
else
vim.api.nvim_put(lines, 'c', false, true)
end