paste: abort paste if handler does not return true

This commit is contained in:
Justin M. Keyes
2019-08-19 00:41:58 +02:00
parent 68ea9a7c8a
commit 4389401a7c
2 changed files with 3 additions and 4 deletions

View File

@@ -109,7 +109,7 @@ local function _paste(data)
-- TODO: do not redraw (slow!) until paste is finished.
-- if eof then
vim.api.nvim_command('redraw')
return 0
return true -- Paste will not continue if not returning `true`.
end
-- TODO(ZyX-I): Create compatibility layer.