From 657c45abb7abfd918db15a672e073d926f394cb5 Mon Sep 17 00:00:00 2001 From: Matt Rose Date: Mon, 19 Oct 2020 16:51:47 -0400 Subject: [PATCH] Clear selection on copy if smart_copy is configured --- terminatorlib/terminal.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/terminatorlib/terminal.py b/terminatorlib/terminal.py index c3d52ac8..def0bee7 100644 --- a/terminatorlib/terminal.py +++ b/terminatorlib/terminal.py @@ -1757,7 +1757,7 @@ class Terminal(Gtk.VBox): if rv: alloc.x, alloc.y = rv return alloc - + # There now begins a great list of keyboard event handlers def key_zoom_in(self): self.zoom_in() @@ -1773,6 +1773,8 @@ class Terminal(Gtk.VBox): def key_copy(self): self.vte.copy_clipboard() + if self.config['smart_copy']: + self.vte.unselect_all() def key_paste(self): self.paste_clipboard()