Preserve clipboard contents on single left click

This commit is contained in:
Abby Edwards authored and Wez Furlong committed 2020-04-05 19:32:59 -07:00
1 parent 96880a08b4
commit 1b2baa5f76
1 file changed
+1 -2
+1 -2
View File
@@ -2792,7 +2792,6 @@ impl TermWindow {
// Initiate a selection
self.selection(tab.tab_id())
.begin(SelectionCoordinate { x, y: stable_row });
self.window.as_ref().unwrap().set_clipboard(String::new());
} else {
// Extend selection
let end = SelectionCoordinate { x, y: stable_row };
@@ -2825,7 +2824,7 @@ impl TermWindow {
log::error!("failed to open {}: {:?}", link.uri(), err);
}
});
} else {
} else if !text.is_empty() {
self.window.as_ref().unwrap().set_clipboard(text);
context.invalidate();
}