Skip to content

Commit

Permalink
Fix bracketed_paste
Browse files Browse the repository at this point in the history
  • Loading branch information
jalvesaq committed Feb 8, 2024
1 parent 6d2d079 commit 204c229
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/r/send.lua
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ M.source_lines = function(lines, verbose, what)
-- tested and source() have always worked flawlessly.
-- FIXME: document it
if config.source_args == "bracketed paste" then
rcmd = "\033[200~" .. table.concat(lines, "\n") .. "\033[201~"
rcmd = "\027[200~" .. table.concat(lines, "\n") .. "\027[201~"
else
vim.fn.writefile(lines, config.source_write)
local sargs = string.gsub(M.get_source_args(verbose), "^, ", "")
Expand Down Expand Up @@ -468,7 +468,7 @@ M.line = function(move, lnum)
end

if config.bracketed_paste then
M.cmd("\033[200~" .. line .. "\033[201~\n", 0)
M.cmd("\027[200~" .. line .. "\027[201~\n", 0)
else
M.cmd(line)
end
Expand Down

0 comments on commit 204c229

Please sign in to comment.