forked from helix-editor/helix
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix system clipboard with mosh + tmux
Some times tmux doesn't pass the clipboard information to the terminal correctly. This is the case of mosh + tmux. The current clipboard doesn't work properly in this case. However, when the tmux option `allow-passthrough` is on, we can escape tmux and pass the OSC52 string directly to the terminal. In this patch, if helix detects that tmux `allow-passthrough` is on, it will use the OSC52 clipboard provider and will escape tmux and pass the OSC52 directly to the terminal. Tested with mosh + tmux with the `allow-passthrough` option on.
- Loading branch information
Showing
1 changed file
with
43 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters