diff options
author | Tomasz N <przepompownia@users.noreply.github.com> | 2023-11-17 02:52:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-16 19:52:22 -0600 |
commit | 86c2213b5e451b0c80c2d7adc356c7cebe4bb7f8 (patch) | |
tree | cceed5c8219826c616222c5298d6739d5f8f1778 | |
parent | 6952b1951b6a60df8d477279f4451094fb51c413 (diff) | |
download | rneovim-86c2213b5e451b0c80c2d7adc356c7cebe4bb7f8.tar.gz rneovim-86c2213b5e451b0c80c2d7adc356c7cebe4bb7f8.tar.bz2 rneovim-86c2213b5e451b0c80c2d7adc356c7cebe4bb7f8.zip |
fix(osc52): use `p` for primary selection instead of `s` (#26076)
Co-authored-by: Gregory Anders <greg@gpanders.com>
-rw-r--r-- | runtime/lua/vim/ui/clipboard/osc52.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/lua/vim/ui/clipboard/osc52.lua b/runtime/lua/vim/ui/clipboard/osc52.lua index f1d454010f..6483f0387d 100644 --- a/runtime/lua/vim/ui/clipboard/osc52.lua +++ b/runtime/lua/vim/ui/clipboard/osc52.lua @@ -10,7 +10,7 @@ local function osc52(clipboard, contents) end function M.copy(reg) - local clipboard = reg == '+' and 'c' or 's' + local clipboard = reg == '+' and 'c' or 'p' return function(lines) local s = table.concat(lines, '\n') io.stdout:write(osc52(clipboard, vim.base64.encode(s))) @@ -18,7 +18,7 @@ function M.copy(reg) end function M.paste(reg) - local clipboard = reg == '+' and 'c' or 's' + local clipboard = reg == '+' and 'c' or 'p' return function() local contents = nil local id = vim.api.nvim_create_autocmd('TermResponse', { |