Skip to content

Commit

Permalink
Merge pull request wuub#76 from mbauman/ascii_control_codes
Browse files Browse the repository at this point in the history
Remove any character that precedes backspace (\08)
  • Loading branch information
wuub committed Sep 16, 2012
2 parents e4e074c + c70845e commit 539d0bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sublimerepl.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def write(self, unistr):
# remove color codes
if self._filter_color_codes:
unistr = re.sub(r'\033\[\d*(;\d*)?\w', '', unistr)
unistr = re.sub(r'_\x08', '', unistr)
unistr = re.sub(r'.\x08', '', unistr)

# string is assumet to be already correctly encoded
v = self._view
Expand Down

0 comments on commit 539d0bb

Please sign in to comment.