Clear selection on copy if smart_copy is configured

This commit is contained in:
Matt Rose 2020-10-19 16:51:47 -04:00
parent 290ca4dbd6
commit 657c45abb7
1 changed files with 3 additions and 1 deletions

View File

@ -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()