CotEditor
CotEditor copied to clipboard
Selecting lines with shift+cursor gets confused with line-wrap
Description
Selecting lines with shift+cursor gets confused after it encounters a line that is wrapped
To Reproduce
- Load a file with some long lines, eg. source code
- Activate line wrap and/or split window vertically
- Use shift+cursor to select line at a time
- 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
https://github.com/coteditor/CotEditor/assets/49612/fed42210-ace1-46c2-897a-8a6f3d6a985e
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.
Well, there are two things happening:
- not selecting hanging part of line (normal, expected)
- 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.
Aha, OK. Now I understand the second issue. Let me see if I can fix it.
Thanks, sorry that my description was not very good.