Select All when lines are hidden doesn't always select all #484
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Result: Last two letters aren't selected. Seems to have something to do with the way selection is fixed up--it selects the whole document, then fixes up the selection across the hidden lines, but maintains the character position of the last character in the document (which is smaller than the last character position in the last unhidden line).
I started looking at fixing this by making it so that when skipHidden() is going upward, it resets the character to the end of the line that it lands on. But the existing heuristic depends on the previous selection, and I wasn't sure how that should interact with this. (In the "Select All" case, it probably should just ignore the previous selection.)
BTW, this isn't super urgent for us...if you felt like working on one of our bugs over the next couple days I'd be much more interested in #483 :)