RRethy / vim-illuminate

illuminate.vim - (Neo)Vim plugin for automatically highlighting other uses of the word under the cursor using either LSP, Tree-sitter, or regex matching.
2.18k stars 50 forks source link

Safely protect word escape in binary blob like files #198

Closed mehalter closed 5 months ago

mehalter commented 5 months ago

I accidentally opened up a PDF file in my editor and got some internal errors. This adds a small safety check when escaping words just in case a binary string is passed to it. This allows these file types to be opened without flooding the editor with errors.

Thanks for this great plugin and hope this helps!