Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

actions: Perform CursorDown with selection like GUI editors do #3540

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

JoeKar
Copy link
Collaborator

@JoeKar JoeKar commented Nov 20, 2024

#3091 introduced a small regression in case the actual selection included the new line character, which was ignored on CursorDown.
This PR shall fix this by moving the cursor to the start of the line and performing a down move of two instead of one line. This additionally aligns with the behavior of other editors and respects the already highlighted next line.
In case a selection was active while no new line character was included as the last character the cursor will be moved to the right once, to place it behind the last selected character, which mimics the behavior of GUI editors.

Fixes #3476

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant