summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Estelle <robertestelle@gmail.com>2019-07-14 12:53:27 -0400
committerRobert Estelle <robertestelle@gmail.com>2019-07-14 12:53:30 -0400
commit841008c947d5fbe780111539804945c46dcdfaf4 (patch)
treefdb2cfb0bd53ba6c6e2a697e3146cba8213a84b2
parentd71d3d99050fa2b658f41602b830c971235b9202 (diff)
downloadzsh-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.zsh2
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() {