andreikop / enki

A text editor for programmers
http://enki-editor.org
GNU General Public License v2.0
161 stars 38 forks source link

I insert 🔇 into a html page and Enki shows a backtrace #438

Open vi opened 6 years ago

vi commented 6 years ago

U+1F507 SPEAKER WITH CANCELLATION STROKE

Traceback (most recent call last):
  File "/home/vi/src/git/qutepart/qutepart/__init__.py", line 1278, in _updateExtraSelections
    cursorColumnIndex)
  File "/home/vi/src/git/qutepart/qutepart/brackethlighter.py", line 142, in extraSelections
    blockText[columnIndex - 1] in self._ALL_BRACKETS and \
IndexError: string index out of range
Traceback (most recent call last):
  File "/home/vi/src/git/qutepart/qutepart/__init__.py", line 844, in _dropUserExtraSelections
    self.setExtraSelections([])
  File "/home/vi/src/git/qutepart/qutepart/__init__.py", line 863, in setExtraSelections
    self._updateExtraSelections()
  File "/home/vi/src/git/qutepart/qutepart/__init__.py", line 1278, in _updateExtraSelections
    cursorColumnIndex)
  File "/home/vi/src/git/qutepart/qutepart/brackethlighter.py", line 142, in extraSelections
    blockText[columnIndex - 1] in self._ALL_BRACKETS and \
IndexError: string index out of range

Also the symbol is visible as two question mark replacement characters.

Enki + Unicode = 🙁, as usual...

vi commented 6 years ago

The character shows up if I type a digit after it.