on master help sign in
fix: xsel copy should not freeze the editor

If using --nodetach, xsel would end up continually running in the foreground, so the command execution would never finish. Fixes #630

commit6dd7dc4eb2d50a9027caef4acc5e0bcc957d9280 authorBlaž Hrastnik <blaz@mxxn.io> dateSun 22 Aug 2021, 15:01 (5 years ago) parent607b92b
1 file changed+1−1
helix-view/src/clipboard.rs+1−1
helix-view/src/clipboard.rs+1−1
@@ -84,7 +84,7 @@ pub fn get_clipboard_provider() -> Box<dyn ClipboardProvider> {
8484 // FIXME: check performance of is_exit_success
8585 command_provider! {
8686 paste => "xsel", "-o", "-b";
87− copy => "xsel", "--nodetach", "-i", "-b";
87+ copy => "xsel", "-i", "-b";
8888 primary_paste => "xsel", "-o";
8989 primary_copy => "xsel", "-i";
9090 }