Changing text style after linking text changes the position of the inline link

Describe the bug

After making an inline link to a URL, if the text style of the block is changed, the placeholder text for the inline text is changed by one character

To Reproduce

Steps to reproduce the behavior:

    1. Go to any page
    1. Type few words
    1. Select a word in the middle and change it as an inline link
    1. Change the text style of the entire block

Expected behavior

The text linked with the URL should not be changed when the block’s text style is changed

System Information:

  • OS: Fedora 34
  • Anytype Version: 0.20.9

Additional context

The following is a block with an inline link. The word “is a link” is linked with a URL

This is how the linked text is changed after the style is changed to highlighted using the / menu. In the image linked, you can see that the linked text is changed from “is a linked” to “s a linked.”. i.e, the link is moved one char to the right

I can reproduce this fairly often when the text-style is changed using the / menu, but when using the dotted block menu to change the style, this does not happen

1 Like

@lynxlove Thank you for your notice! It has been added to the bug tracker

The text that is linking is shifting to the right by one character each time the “text style” is changed with the “/” command. It doesn’t happen when using the “3 dot” menu to change the text style.

Edit:
Related