andreikop / enki

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

I see this when typing in Russian in a YAML file in a specific place #420

Open vi opened 7 years ago

vi commented 7 years ago
Traceback (most recent call last):
  File "/home/vi/src/git/qutepart/qutepart/syntaxhlighter.py", line 236, in _onContentsChange
    self._highlighBlocks(firstBlock, untilBlock, timeout)
  File "/home/vi/src/git/qutepart/qutepart/syntaxhlighter.py", line 281, in _highlighBlocks
    lineData, highlightedSegments = self._syntax.highlightBlock(block.text(), contextStack)
IndexError: string index out of range

Steps to reproduce:

  1. Run Enki;
  2. Create a file, named, for example qqq.yaml;
  3. Type q:
  4. Type ы.
  5. Observe the error message