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

Caret jumps columns after downarrow #3786

Open
elextr opened this issue Mar 10, 2024 · 0 comments
Open

Caret jumps columns after downarrow #3786

elextr opened this issue Mar 10, 2024 · 0 comments

Comments

@elextr
Copy link
Member

elextr commented Mar 10, 2024

  1. put cursor in the middle of line 1 in a paragraph of 4 or more lines (I used here ), so all lines are longer than the starting column
  2. select line with SHIFT+ALT+L, line is selected and caret appears at the start of the next line
  3. press downarrow, caret moves to the line after but to the column in 1. above

Since the caret after step 2. is at the start of the line a user is reasonable in assuming that downarrow will move to the start of the next line, not to the middle of it.

Reported as a selection problem on ML, but is really the caret position moving in an unexpected way.

Suspect editor_select_lines() should explicitly move the current position to end of selection? (link above is to middle of that function ;-)

Edit: might be in Scintilla since Geany just calls SCI_SETSEL which is supposed to set current position to the end, also downarrow is directly actioned by Scintilla AFAICT so the problem may be entirely there.

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

No branches or pull requests

1 participant