API: nvim_put: "follow" parameter

This commit is contained in:
Justin M. Keyes
2019-08-20 23:53:13 +02:00
parent 613296936b
commit 93e5f0235b
3 changed files with 34 additions and 13 deletions

View File

@@ -100,7 +100,7 @@ local function _paste(lines)
local mode = call('mode', {})
local curline = call('line', {'.'})
-- vim.api.nvim_set_option('paste', true)
vim.api.nvim_put(lines, 'c', false)
vim.api.nvim_put(lines, 'c', true, true)
-- vim.api.nvim_set_option('paste', false)
-- TODO: do not redraw (slow!) until paste is finished.
-- if eof then