Skip to content

Crashes due to deleting a mixed selection #273

@tnspacetime

Description

@tnspacetime

Describe the bug
When the input text is selected and the text includes both normal text and a formatted element (bold, italic etc.), then deleting the text causes a crash.

To Reproduce
Steps to reproduce the behavior:

  1. Open markdown input to write text
  2. Select text, make sure the selection includes both normal text and formatted element (but not the whole input text)
  3. Press the delete key
  4. See error (crashing)

If the option "Cut" is used, btw, there's no crash, but the markdown format is deformed and parsed incorrectly.

Expected behavior
Deleting mixed selection or cutting should neither crash the app or deform markdown format.

Screenshots
N/A

Device (please complete the following information):

  • Device: [e.g. iPhone12]
  • Version [e.g. 0.5.0]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions