Clear selection on copy if smart_copy is configured
This commit is contained in:
parent
290ca4dbd6
commit
657c45abb7
|
@ -1757,7 +1757,7 @@ class Terminal(Gtk.VBox):
|
||||||
if rv:
|
if rv:
|
||||||
alloc.x, alloc.y = rv
|
alloc.x, alloc.y = rv
|
||||||
return alloc
|
return alloc
|
||||||
|
|
||||||
# There now begins a great list of keyboard event handlers
|
# There now begins a great list of keyboard event handlers
|
||||||
def key_zoom_in(self):
|
def key_zoom_in(self):
|
||||||
self.zoom_in()
|
self.zoom_in()
|
||||||
|
@ -1773,6 +1773,8 @@ class Terminal(Gtk.VBox):
|
||||||
|
|
||||||
def key_copy(self):
|
def key_copy(self):
|
||||||
self.vte.copy_clipboard()
|
self.vte.copy_clipboard()
|
||||||
|
if self.config['smart_copy']:
|
||||||
|
self.vte.unselect_all()
|
||||||
|
|
||||||
def key_paste(self):
|
def key_paste(self):
|
||||||
self.paste_clipboard()
|
self.paste_clipboard()
|
||||||
|
|
Loading…
Reference in New Issue