diff options
author | Robert Estelle <robertestelle@gmail.com> | 2019-07-14 12:53:27 -0400 |
---|---|---|
committer | Robert Estelle <robertestelle@gmail.com> | 2019-07-14 12:53:30 -0400 |
commit | 841008c947d5fbe780111539804945c46dcdfaf4 (patch) | |
tree | fdb2cfb0bd53ba6c6e2a697e3146cba8213a84b2 | |
parent | d71d3d99050fa2b658f41602b830c971235b9202 (diff) | |
download | zsh-841008c947d5fbe780111539804945c46dcdfaf4.tar.gz zsh-841008c947d5fbe780111539804945c46dcdfaf4.tar.bz2 zsh-841008c947d5fbe780111539804945c46dcdfaf4.zip |
clipboard: Fix tmux clipcopy after testing
Tmux must have special handling for /dev/stdin since it's managing the
terminal itself. This was tested with tmux-2.9a on macOS.
-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 671d33d8e..5001f4695 100644 --- a/lib/clipboard.zsh +++ b/lib/clipboard.zsh @@ -76,7 +76,7 @@ function detect-clipboard() { function clipcopy() { win32yank -i < "${1:-/dev/stdin}"; } function clippaste() { win32yank -o; } elif [ -n "${TMUX:-}" ] && (( ${+commands[tmux]} )); then - function clipcopy() { tmux load-buffer "${1:-/dev/stdin}"; } + function clipcopy() { tmux load-buffer "${1:--}"; } function clippaste() { tmux save-buffer -; } else function _retry_clipboard_detection_or_fail() { |