norcalli / nvim-colorizer.lua

The fastest Neovim colorizer.
Other
2.3k stars 118 forks source link

Bug: Highlighted text is incorrect upon change #32

Open Gee19 opened 4 years ago

Gee19 commented 4 years ago

Describe the bug Upon changing a word that is highlighted (see screenshots for better explanation) the color seems to overlap the proceeding text.

To Reproduce Navigate to a highlighted word in normal mode, execute ciw then u. Colors now highlight the incorrect text.

Expected behavior Plugin should continue to highlight the correct text

Screenshots ciw https://i.imgur.com/u9FXchC.png

u https://i.imgur.com/mgPm2oP.png

Operating System: MacOS

Neovim Version: v0.5.0-b0196586d

Colorizer Version: master / 35f1aad99c4d03217bcc80a2e16efe3ba74379a4

Also almost forgot, thanks for the great plugin. I love it :)

norcalli commented 4 years ago

I've noticed this recently as well, but haven't had the time to debug it yet. I also use master, so I do wonder if it's master related. Thanks for the issue though, as a good reminder :)

Gee19 commented 4 years ago

If I have some time over the holidays I will gladly dig into this some more as a learning experience :)

phmarek commented 3 years ago

I can still reproduce that with current git HEAD.