mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 11:58:17 +00:00
Merge #10995 'paste: fix paste in terminal mode'
This commit is contained in:
@@ -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')
|
||||
|
Reference in New Issue
Block a user