Skip to content

Cursor behaviour when pressing right arrow at end of line #3192

Closed

Description

@nathanielvirgo

Description

The cursor does not behave as expected when pressing the right arrow key at the end of a line, as described below.

The expected behaviour occurs in virtually all other macos text editors, and I expect on other platforms as well.

  • Can you reproduce the issue?

Steps to reproduce

  1. enter a line of text
  2. press enter to enter a blank line paragraph break after the line of text
  3. position the cursor at the end of the line of text
  4. press the right arrow key
  5. at this point the cursor moves to the start of the next line as expected
  6. now press the up arrow key

Expected behavior:

The cursor moves to the start of the line of text

Actual behavior:

The cursor moves to the end of the line of text.

In other apps, if you move the cursor to the next line using the down arrow key then it remembers its position in the line, but if you move to the next line using the right arrow then it will reset to the start of the line. I suspect that in Marktext the cursor is remembering its position even when the right arrow is used.

In other apps I use this behaviour to navigate around files all the time, so it's jarring when it doesn't happen.

Versions

  • MarkText version: 0.17.1
  • Operating system: Macos 10.15.7

Activity

  1. tellmewhy12 commented on Apr 11, 2022

    @tellmewhy12

    If you press the enter key you insert a new paragraph, if you press shift+enter you create a new line

  2. nathanielvirgo commented on Apr 12, 2022

    @nathanielvirgo
    Author

    @mangoepic that's good to know. It seems that the cursor behaviour around blank lines inserted with shift-enter has its own set of issues - it seems to move around fairly randomly when pressing the up and down arrow, skipping lines and such. I'll file another bug report later if I have a chance.

    But regardless of that, I think the expected behaviour in this bug report should be as I described. From a user point of view, paragraph breaks in MarkText behave much like blank lines in other text editors - having minor differences in behaviour between them is jarring and makes navigation harder.

  3. added
    🐛 bug
    🪲 pri/low
    on May 16, 2026
  4. Jocs commented on Oct 7, 2026

    @Jocs
    Member

    This is fixed in the develop branch and will be released in the next version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    🪲 pri/low🐛 bug🔭 area/editor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions