Skip to content

Commit

Permalink
fix: xsel copy should not freeze the editor
Browse files Browse the repository at this point in the history
If using --nodetach, xsel would end up continually running in the
foreground, so the command execution would never finish.

Fixes #630
  • Loading branch information
archseer committed Aug 22, 2021
1 parent 607b92b commit 6dd7dc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helix-view/src/clipboard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ pub fn get_clipboard_provider() -> Box<dyn ClipboardProvider> {
// FIXME: check performance of is_exit_success
command_provider! {
paste => "xsel", "-o", "-b";
copy => "xsel", "--nodetach", "-i", "-b";
copy => "xsel", "-i", "-b";
primary_paste => "xsel", "-o";
primary_copy => "xsel", "-i";
}
Expand Down

0 comments on commit 6dd7dc4

Please sign in to comment.