From 14fb184df8276b72339446153b8e1bdfef7cf01a Mon Sep 17 00:00:00 2001 From: Stephen Boddy Date: Sun, 29 Nov 2015 23:37:02 +0100 Subject: [PATCH] Fix exception when Ctrl-clicking the terminal when not over a URL --- terminatorlib/terminal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terminatorlib/terminal.py b/terminatorlib/terminal.py index 3b5159fc..427a2739 100755 --- a/terminatorlib/terminal.py +++ b/terminatorlib/terminal.py @@ -921,7 +921,7 @@ class Terminal(Gtk.VBox): # Ctrl+leftclick on a URL should open it if event.get_state() & Gdk.ModifierType.CONTROL_MASK == Gdk.ModifierType.CONTROL_MASK: url = self.check_for_url(event) - if url: + if url[0]: self.open_url(url, prepare=True) elif event.button == 2: # middleclick should paste the clipboard