Fix up URL drag&drop support to not print so much of the incoming data. Closes LP#1052003
This commit is contained in:
parent
5e5ff4a31f
commit
df41d78f8e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue