Restore clipboard to its pre-trigger state before evaluating passive match
Fixes #365
This commit is contained in:
parent
45bcaee54b
commit
c3c3908e1e
|
@ -366,6 +366,7 @@ impl<
|
|||
info!("Avoiding passive expansion, as the user didn't select anything");
|
||||
} else {
|
||||
if let Some(previous_content) = previous_clipboard {
|
||||
self.clipboard_manager.set_clipboard(&previous_content);
|
||||
// Because of issue #213, we need to make sure the user selected something.
|
||||
if clipboard == previous_content {
|
||||
info!("Avoiding passive expansion, as the user didn't select anything");
|
||||
|
|
Loading…
Reference in New Issue
Block a user