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

Selecting lines with shift+cursor gets confused with line-wrap #1585

Open
gingerbeardman opened this issue Jan 27, 2024 · 4 comments
Open

Selecting lines with shift+cursor gets confused with line-wrap #1585

gingerbeardman opened this issue Jan 27, 2024 · 4 comments
Assignees
Labels
request feature requests from users

Comments

@gingerbeardman
Copy link

gingerbeardman commented Jan 27, 2024

Description

Selecting lines with shift+cursor gets confused after it encounters a line that is wrapped

To Reproduce

  1. Load a file with some long lines, eg. source code
  2. Activate line wrap and/or split window vertically
  3. Use shift+cursor to select line at a time
  4. Cursor selects parts of lines after it encounters line wrap

Expected behavior

  • should continue selecting full lines regardless after line wrap is encountered

CotEditor version

  • 4.7.3

macOS version

  • 14.3

Additional context

Screen recording

Screen.shot.2024-01-27.at.15.15.16.mov
@gingerbeardman gingerbeardman added the potential bug issues not yet tested label Jan 27, 2024
@1024jp
Copy link
Member

1024jp commented Jan 28, 2024

I'd say it is currently by design that the hanging indentation part is not highlighted when selecting.
But, I understand it feels odd.

I'll check whether there is a lightweight way to detour it.

@1024jp 1024jp self-assigned this Jan 28, 2024
@1024jp 1024jp added request feature requests from users and removed potential bug issues not yet tested labels Jan 28, 2024
@gingerbeardman
Copy link
Author

gingerbeardman commented Jan 28, 2024

Well, there are two things happening:

  1. not selecting hanging part of line (normal, expected)
  2. beyond the hanging part selection is no longer working in full lines (bug, unexpected)

For item 2, I tested all my other editors and none of them exhibit this problem.

  • BBEdit
  • TextMate
  • Sublime Text
  • SubEthaEdit
  • Nova

Source files: https://web.archive.org/web/20060626155423/http://www.ueno.no-ip.org:80/~jinzo/WinCE/download/JZP16/102/JZP16-102-src.zip

main.cpp, search for IDM_PASTE and use narrow window size with word wrap activated.

@1024jp
Copy link
Member

1024jp commented Feb 10, 2024

Aha, OK. Now I understand the second issue. Let me see if I can fix it.

@gingerbeardman
Copy link
Author

Thanks, sorry that my description was not very good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
request feature requests from users
Development

No branches or pull requests

2 participants