From ffa029ad1cc2f3ddc3f670f1c407deabbc1bec62 Mon Sep 17 00:00:00 2001 From: Björn Linse Date: Wed, 11 Sep 2019 20:10:16 +0200 Subject: paste: fix paste in terminal mode --- src/nvim/lua/vim.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/nvim/lua/vim.lua b/src/nvim/lua/vim.lua index f8e52d31c9..98519f7848 100644 --- a/src/nvim/lua/vim.lua +++ b/src/nvim/lua/vim.lua @@ -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 -- cgit