Fix up URL drag&drop support to not print so much of the incoming data. Closes LP#1052003

This commit is contained in:
Chris Jones 2013-02-15 15:10:55 +00:00
parent 5e5ff4a31f
commit df41d78f8e
1 changed files with 2 additions and 1 deletions

View File

@ -981,7 +981,8 @@ class Terminal(gtk.VBox):
txt = selection_data.data.strip(' ') txt = selection_data.data.strip(' ')
if txt[0:7] == 'file://': if txt[0:7] == 'file://':
txt = "'%s'" % urllib.unquote(txt[7:]) 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): for term in self.terminator.get_target_terms(self):
term.feed(txt) term.feed(txt)
return return