Skip to content

Commit

Permalink
Fix OSC52 escape sequence formatting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
xukaihub authored and ibhagwan committed Nov 10, 2024
1 parent d9e078f commit 0a4554a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/smartyank/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ end
M.osc52printf = function(str, type)
local base64 = require("smartyank.base64").encode(str)
local osc52str = type == "tmux"
and string.format("\x1bPtmux;\x1b\x1b]52;c;%s\x07\x1b\\\\", base64)
and string.format("\x1bPtmux;\x1b\x1b]52;c;%s\x07\x1b\\", base64)
or string.format("\x1b]52;c;%s\x07", base64)
local bytes = vim.fn.chansend(vim.v.stderr, osc52str)
-- TODO: why does this return 0 on very large yanks? (#5)
Expand Down

0 comments on commit 0a4554a

Please sign in to comment.