Skip to content

Commit

Permalink
minor fix to decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffroymontel committed Feb 29, 2012
1 parent 37f7413 commit b706bfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SuperCollider.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def poll(self):
scReturnedSomething = False
else:
somethingHappened = True
Sc_startCommand.output_view.insert(edit, Sc_startCommand.output_view.size(), line.decode(sys.getfilesystemencoding(), 'ignore'))
Sc_startCommand.output_view.insert(edit, Sc_startCommand.output_view.size(), line)

Sc_startCommand.output_view.end_edit(edit)

Expand Down Expand Up @@ -94,7 +94,7 @@ def run(self):
point = sel[0]
line = view.line(point)
line_str = view.substr(line)
if line_str[0] == '(':
if line_str[0] == '(' or line_str[0] == ')':
view.run_command("expand_selection", {"to": "brackets"})
sel = view.sel()
region = view.line(sel[0])
Expand Down

0 comments on commit b706bfb

Please sign in to comment.