diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-09-08 15:37:24 -0700 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-09-08 15:37:32 -0700 |
commit | acd2729573171995e8a66be7e09ba4e2fc5d9c69 (patch) | |
tree | d266fe011b79cb85e1b27eba8c195b37845897ba /src/nvim/lua/vim.lua | |
parent | 0dea44f93ce925baedf0f2d39d799f36671986b6 (diff) | |
download | rneovim-acd2729573171995e8a66be7e09ba4e2fc5d9c69.tar.gz rneovim-acd2729573171995e8a66be7e09ba4e2fc5d9c69.tar.bz2 rneovim-acd2729573171995e8a66be7e09ba4e2fc5d9c69.zip |
paste: do not clobber msg area for small pastes
Diffstat (limited to 'src/nvim/lua/vim.lua')
-rw-r--r-- | src/nvim/lua/vim.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nvim/lua/vim.lua b/src/nvim/lua/vim.lua index 7d5dc0bffc..cc10118906 100644 --- a/src/nvim/lua/vim.lua +++ b/src/nvim/lua/vim.lua @@ -203,8 +203,7 @@ paste = (function() vim.api.nvim_command(('echo "%s"'):format(dots)) end if phase == -1 or phase == 3 then - vim.api.nvim_command('redraw') - vim.api.nvim_command('echo ""') + vim.api.nvim_command('redraw'..(tick > 1 and '|echo ""' or '')) end return true -- Paste will not continue if not returning `true`. end |