Skip to content

Commit

Permalink
revert: use win32yank because clip can't handle UTF-8 string correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
ayamir committed May 25, 2023
1 parent d90d7f0 commit 750eef1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lua/core/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,14 @@ local clipboard_config = function()
}
elseif global.is_wsl then
vim.g.clipboard = {
name = "psyank-wsl",
name = "win32yank-wsl",
copy = {
["+"] = "clip.exe",
["*"] = "clip.exe",
["+"] = "win32yank.exe -i --crlf",
["*"] = "win32yank.exe -i --crlf",
},
paste = {
["+"] = [[powershell.exe -NoProfile -NoLogo -NonInteractive -Command [console]::Out.Write($(Get-Clipboard -Raw).tostring().replace("`r", ""))]],
["*"] = [[powershell.exe -NoProfile -NoLogo -NonInteractive -Command [console]::Out.Write($(Get-Clipboard -Raw).tostring().replace("`r", ""))]],
["+"] = "win32yank.exe -o --lf",
["*"] = "win32yank.exe -o --lf",
},
cache_enabled = 0,
}
Expand Down

0 comments on commit 750eef1

Please sign in to comment.