From df41d78f8efb623ddadcbb7946fdd4fb8662d7de Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Fri, 15 Feb 2013 15:10:55 +0000 Subject: [PATCH] Fix up URL drag&drop support to not print so much of the incoming data. Closes LP#1052003 --- terminatorlib/terminal.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/terminatorlib/terminal.py b/terminatorlib/terminal.py index 0b855870..a153f22f 100755 --- a/terminatorlib/terminal.py +++ b/terminatorlib/terminal.py @@ -981,7 +981,8 @@ class Terminal(gtk.VBox): txt = selection_data.data.strip(' ') if txt[0:7] == 'file://': txt = "'%s'" % urllib.unquote(txt[7:]) - txt = selection_data.data.strip('\n') + else: + txt = txt.split('\n')[0] for term in self.terminator.get_target_terms(self): term.feed(txt) return