diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-08-19 00:41:58 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-08-27 21:19:10 +0200 |
commit | 4389401a7c82ca43a3634f65f57815af06fe9abd (patch) | |
tree | 16172d983dade5f7402222fd00fb539247029495 /src/nvim/lua/vim.lua | |
parent | 68ea9a7c8a7a74ec6ec9782528527cf70b92a376 (diff) | |
download | rneovim-4389401a7c82ca43a3634f65f57815af06fe9abd.tar.gz rneovim-4389401a7c82ca43a3634f65f57815af06fe9abd.tar.bz2 rneovim-4389401a7c82ca43a3634f65f57815af06fe9abd.zip |
paste: abort paste if handler does not return true
Diffstat (limited to 'src/nvim/lua/vim.lua')
-rw-r--r-- | src/nvim/lua/vim.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/lua/vim.lua b/src/nvim/lua/vim.lua index 47feba0f85..54fce47fd0 100644 --- a/src/nvim/lua/vim.lua +++ b/src/nvim/lua/vim.lua @@ -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. |