Make copy on select only copy to clipboard if we actually have a
selection. This avoids the clipboard to be cleared if we loose selection. Like you have vim open, select some text, CTRL-Z to send vim to the background, that causes the selection to change and the clipboard to be cleared. Patch from Mattias Eriksson (merge proposal #279733)
This commit is contained in:
parent
3fd060c215
commit
bff8a924b1
|
@ -330,7 +330,7 @@ class Terminal(gtk.VBox):
|
||||||
del(self.matches[name])
|
del(self.matches[name])
|
||||||
|
|
||||||
def maybe_copy_clipboard(self):
|
def maybe_copy_clipboard(self):
|
||||||
if self.config['copy_on_selection']:
|
if self.config['copy_on_selection'] and self.vte.get_has_selection():
|
||||||
self.vte.copy_clipboard()
|
self.vte.copy_clipboard()
|
||||||
|
|
||||||
def connect_signals(self):
|
def connect_signals(self):
|
||||||
|
|
Loading…
Reference in New Issue