You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cursor behaviour when pressing right arrow at end of line #3192
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
enter a line of text
press enter to enter a blank line paragraph break after the line of text
position the cursor at the end of the line of text
press the right arrow key
at this point the cursor moves to the start of the next line as expected
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.
@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.
Activity
tellmewhy12 commentedon Apr 11, 2022
If you press the enter key you insert a new paragraph, if you press shift+enter you create a new line
nathanielvirgo commentedon Apr 12, 2022
@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.
Jocs commentedon Oct 7, 2026
This is fixed in the develop branch and will be released in the next version.