-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Adjust selection when resizing window #1368
Comments
At some point, I changed the behavior to be that selection clears on resize. I'm treating this issue now as a feature request for adjusting the selection when resizing. |
I'm not sure the value in keeping the selection during resize. Why should we do it? |
Actually, yeah. I just realized this issue was submitted almost a year ago haha. The issues with maintaining the selection on a resize is that (as noted by this issue) the selection anchors can't be guaranteed to point to the same text once text wraps in the buffer. It's a lot of extra work and not really worth it, considering that the user can easily just do another selection. I'll close this out, for now, until proven otherwise that there's value in keeping a selection after a resize. |
Environment
commit 0846464
Steps to reproduce
a
40 timesExpected behavior
When selected text gets wrapped or moves downward (due to previous lines being wrapped), selection should follow.
Actual behavior
Selection stays at one line and doesn't move.
The text was updated successfully, but these errors were encountered: