aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/lua/vim.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/lua/vim.lua')
-rw-r--r--src/nvim/lua/vim.lua4
1 files changed, 3 insertions, 1 deletions
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