Strip newline from text being dragged into the terminal
This commit is contained in:
parent
55e8b65aed
commit
5185657010
|
@ -977,9 +977,10 @@ class Terminal(gtk.VBox):
|
||||||
if gtk.targets_include_text(drag_context.targets) or \
|
if gtk.targets_include_text(drag_context.targets) or \
|
||||||
gtk.targets_include_uri(drag_context.targets):
|
gtk.targets_include_uri(drag_context.targets):
|
||||||
# copy text to destination
|
# copy text to destination
|
||||||
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')
|
||||||
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
|
||||||
|
|
Loading…
Reference in New Issue