Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion clipetty.el
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ Optionally base64 encode it first if you specify non-nil for ENCODE."
"Emit STRING, optionally wrapped in a DCS, to an appropriate tty."
(let ((tmux (getenv "TMUX" (selected-frame)))
(term (getenv "TERM" (selected-frame)))
(ssh-tty (getenv "SSH_TTY" (selected-frame))))
(ssh-tty (if (getenv "TMUX" (selected-frame)) nil (getenv "SSH_TTY" (selected-frame))))) ; under TMUX SSH_TTY can get stale on reconnect
(if (<= (length string) clipetty--max-cut)
(write-region
(clipetty--dcs-wrap string tmux term ssh-tty)
Expand Down