diff options
author | Daniel Hahler <git@thequod.de> | 2019-10-02 03:43:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-02 03:43:39 +0200 |
commit | e63fdf63ba057877573dbb3171a8c7ae698cf1bc (patch) | |
tree | 28baa93d934b2574883e0640e3ebce6394039e0f /src/nvim/lua | |
parent | 60b56ed458c6b35d5045959192b49da5a0ea84f3 (diff) | |
parent | eef3809067ae0f613e30b711ef720415c7016381 (diff) | |
download | rneovim-e63fdf63ba057877573dbb3171a8c7ae698cf1bc.tar.gz rneovim-e63fdf63ba057877573dbb3171a8c7ae698cf1bc.tar.bz2 rneovim-e63fdf63ba057877573dbb3171a8c7ae698cf1bc.zip |
Merge pull request #11133 from blueyed/backports
[release-0.4] backports
Diffstat (limited to 'src/nvim/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 a03e97490d..b1a684b977 100644 --- a/src/nvim/lua/vim.lua +++ b/src/nvim/lua/vim.lua @@ -189,7 +189,7 @@ paste = (function() if mode == 'c' and not got_line1 then -- cmdline-mode: paste only 1 line. got_line1 = (#lines > 1) vim.api.nvim_set_option('paste', true) -- For nvim_input(). - local line1, _ = string.gsub(lines[1], '[\r\n\012\027]', ' ') -- Scrub. + local line1 = lines[1]:gsub('<', '<lt>'):gsub('[\r\n\012\027]', ' ') -- Scrub. vim.api.nvim_input(line1) vim.api.nvim_set_option('paste', false) elseif mode ~= 'c' then -- Else: discard remaining cmdline-mode chunks. |