From 5185657010c12c242b20db242d68dc139db907bb Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Thu, 18 Oct 2012 14:12:44 -0700 Subject: [PATCH] Strip newline from text being dragged into the terminal --- terminatorlib/terminal.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/terminatorlib/terminal.py b/terminatorlib/terminal.py index feca0016..ba630f34 100755 --- a/terminatorlib/terminal.py +++ b/terminatorlib/terminal.py @@ -977,9 +977,10 @@ class Terminal(gtk.VBox): if gtk.targets_include_text(drag_context.targets) or \ gtk.targets_include_uri(drag_context.targets): # copy text to destination - txt = selection_data.data.strip() + txt = selection_data.data.strip(' ') if txt[0:7] == 'file://': txt = "'%s'" % urllib.unquote(txt[7:]) + txt = selection_data.data.strip('\n') for term in self.terminator.get_target_terms(self): term.feed(txt) return