davraamides / todotxt-mode

MIT License
59 stars 12 forks source link

Wrong colors after sort by priority #46

Open daniel-wojcik opened 2 years ago

daniel-wojcik commented 2 years ago

Create two tasks:

task2 (A) task1

place cursor in first line (important) then sort by priority - task1 is moved to first line over task2 but colors are wrong: instead of highlighting (A) two last letters k1 are highlighted. It is fixed after any cursor movement.

davraamides commented 2 years ago

Thanks, @daniel-wojcik. I have noticed this in certain situations. Sometimes VS Code doesn't trigger a redecoration of the document unless the selection changes. I even force that in certain situations by moving the cursor to the end of the line and back to the beginning. But that was always a hack. I'll look into a more robust way to solve that.