diff options
-rw-r--r-- | src/nvim/lua/vim.lua | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/nvim/lua/vim.lua b/src/nvim/lua/vim.lua index 98519f7848..a03e97490d 100644 --- a/src/nvim/lua/vim.lua +++ b/src/nvim/lua/vim.lua @@ -193,12 +193,10 @@ 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. - if mode ~= 't' then - vim.api.nvim_command('normal! a') - end + vim.api.nvim_command('normal! a') else vim.api.nvim_put(lines, 'c', false, true) end |