From 8428457be1714694ed82fe26c7cbecc600410a2e Mon Sep 17 00:00:00 2001 From: Andy Kluger Date: Wed, 15 Jul 2020 16:47:18 -0400 Subject: [PATCH] Restore original clipboard before render, in case it's used during render --- src/engine.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/engine.rs b/src/engine.rs index 28e8cf5..6a760e8 100644 --- a/src/engine.rs +++ b/src/engine.rs @@ -373,6 +373,9 @@ impl< } else { info!("Passive mode activated"); + // Restore original clipboard in case it's used during render + self.clipboard_manager.set_clipboard(&previous_clipboard); + let rendered = self.renderer.render_passive(&clipboard, &config); match rendered {