redoPop / SublimeGremlins

Reveal odd and invisible whitespace characters in Sublime Text.
43 stars 3 forks source link

Convert GremlinsNameCurrentCommand to a WindowCommand #5

Closed redoPop closed 5 years ago

redoPop commented 5 years ago

This PR provides a fix for issue #4

Reading the current selection from a TextCommand via the View#sel() method is treated as a modification, breaking Find result regions.

Converting the GremlinsNameCurrentCommand to a WindowCommand seems to circumvent the issue and still allows us to read the character and modify the status bar message.