bastibe / annotate.el

Annotate.el
Other
384 stars 20 forks source link

Fixed wrong coloration for adjacent annotations #162

Closed cage2 closed 3 months ago

cage2 commented 3 months ago

Hi @bastibe !

A minor (but annoying) bug fixed (I fear won't be the last one! :smile: :smile:).

Bye! C.


Example:

  foo-bar
   ⏶  ^^^ ← annotated text
   |
   `cursor position

annotating "foo-" ("C-c C-a") would set a color for the new annotation equals to the one on the left, the correct behavior would be to set a different color.

bastibe commented 3 months ago

Quite the subtle bug you found there!

Your fix look good!

cage2 commented 3 months ago

Hi @bastibe !

Quite the subtle bug you found there!

Yes, the number of possible configuration text/ position of annotation seems quite high, i do not believe i still stepped into all of them! :smile:

Your fix look good!

Thanks! I am merging in a minute! C.