SublimeText / WordHighlight

Highlight all copies of the currently selected word.
MIT License
180 stars 24 forks source link

unicode characters in large files cause extreme slowdown #75

Open Enteleform opened 7 years ago

Enteleform commented 7 years ago

Sublime Text 3143 Windows 10 x64

I first noticed this when attempting to select all text with Ctrl + A in the __init__.py file of the keyboard module. Sublime Text would become entirely unresponsive for about 5-10 seconds, and then finally select all of the text in the file.

I managed to narrow down the cause to this line, which contains a ç character.

Tests:

obxyann commented 7 years ago

I had the same problem after I upgraded my sublime 3 to 3143...when I 'select all' or lots lines in a Chinese text, the sublime will freeze...(special select all in thousands lines text) A temp solution is set my user setting "highlight_non_word_characters": true -> false It seems some char codes (not only ç ? ) used in CJK character can also cause this issue....

billionaire commented 7 years ago

i also have this problem and it also appeared only after updating to build 3143. it was terribly difficult to use sublime text 3. temporary solution: "highlight_non_word_characters": true -> false did not help me (i already had false). unresponsive occurs if there is cyrillic chars in the text. with ascii characters everything is fine.

alvolturbo commented 6 years ago

I have the same issue when i use "Ctrl+A" to select whole file or mouse to select only some multiline part of the text. I use a lot of characters in Cyrillic (Windows 1251) encoding. Is there any way to fix it and still use "highlight_non_word_characters": true?