diff options
| author | Jordan Galby <gravemind2a@gmail.com> | 2023-12-31 11:17:37 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-31 11:17:37 +0100 |
| commit | fa770f9678477febe0ed99566d9f3331f3714eca (patch) | |
| tree | 896a1d5afc2b0c8bd62f49eac4de1a0c92bd11d5 /lib/clipboard.zsh | |
| parent | 667fdbf7746acc90aa29b316ef711180e7917aa2 (diff) | |
| download | zsh-fa770f9678477febe0ed99566d9f3331f3714eca.tar.gz zsh-fa770f9678477febe0ed99566d9f3331f3714eca.tar.bz2 zsh-fa770f9678477febe0ed99566d9f3331f3714eca.zip | |
fix(clipboard): remove clippaste additional newline on wayland (#12140)
So clippaste behaves the same as on X11 (xsel, xclip).
Diffstat (limited to 'lib/clipboard.zsh')
| -rw-r--r-- | lib/clipboard.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/clipboard.zsh b/lib/clipboard.zsh index 4b37abc9b..5d149f056 100644 --- a/lib/clipboard.zsh +++ b/lib/clipboard.zsh @@ -62,7 +62,7 @@ function detect-clipboard() { function clippaste() { powershell.exe -noprofile -command Get-Clipboard; } elif [ -n "${WAYLAND_DISPLAY:-}" ] && (( ${+commands[wl-copy]} )) && (( ${+commands[wl-paste]} )); then function clipcopy() { cat "${1:-/dev/stdin}" | wl-copy &>/dev/null &|; } - function clippaste() { wl-paste; } + function clippaste() { wl-paste --no-newline; } elif [ -n "${DISPLAY:-}" ] && (( ${+commands[xsel]} )); then function clipcopy() { cat "${1:-/dev/stdin}" | xsel --clipboard --input; } function clippaste() { xsel --clipboard --output; } |
