Spell check conflicts with text color

WHAT IS THE BUG

When replacing a word through spell check, color formatting might be shifted by a couple characters.

HOW TO REPRODUCE IT

  1. Write a sentence and use text color for some words
  2. Misspell a word
  3. Correct this word through spell checker.
  4. See that the color formatting of the words before has shifted.
  5. I was able to provide a video capture (or screen-shot) of the bug, here it is:

THE EXPECTED BEHAVIOR

Color formatting should stay the same.

SYSTEM INFORMATION

  • OS:
    MacOS Ventura 13.3.1
  • Device:
    MacBook Pro M1
  • Anytype Version:
    0.31.0

ADDITIONAL CONTEXT

There were other bugs related to spell check, like this one:

This report has been added to our issue tracker and received by the Development Team.

This issue has been fixed by the Development Team and will be implemented in an upcoming release.

This issue has been fixed with 0.38.0.