Skip to content

Delete unintended content when <> exists #1336

@runmingl

Description

@runmingl

Description

When I have a passage like this

<><>
This is a paragraph.
This is another parapraph.

And I tried to delete content from the very beginning by pressing the delete key when the cursor is at the front. However, instead of deleting content word by word as intended, it deleted the first <> and the skip the first parapragh and started to delete the second paragraph.

  • Can you reproduce the issue?

Steps to reproduce

  1. [First step]
    Having a passage that includes at least three paragraphs which the first paragraph being <><>
  2. [Second step]
    Move the cursor before the first <>
  3. [Third step]
    Start pressing DELETE

Expected behavior:
It first deletes <><>, and then deletes the first paragraphs, and then deletes the second paragraphs.

Actual behavior:
It deletes the first <> and then skips the first paragraph and deletes the second paragraphs.

img

Versions

  • Mark Text: 0.14.0
  • Operating system: Windows 10.0.17134

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions