Open aral opened 2 years ago
I see selections being retained when looking around in sticky view mode (Z) or with C-f
/C-b
and with thrackpad or mouse-wheel scrolling: https://asciinema.org/a/496073
@the-mikedavis Thanks for looking into this. At around 0:07, the primary selection disappears. I just checked again, and yes, the secondary selections stay intact. Will update the issue to reflect this now.
Oh yeah I see that now too. The selection counter stays the same when the primary selection disappears but the primary cursor moves to stay within view which moves that selection. If you replace/change the selections after that it makes a change where the primary cursor moved instead of the original selection. I think this is ultimately https://github.com/helix-editor/helix/issues/2134
Summary
Make a selection or two and scroll (e.g., to see if there are any others you want to add to your multiple selection). Helix loses your primary selection as you approach the top of the screen.
Reproduction Steps
What should happen
All your selections should stay as they are. You haven’t expressed a desire to change those in any way. You just want to see a different part of your code.
What actually happens
Your primary selection is lost.
Helix log
n/a
Platform
Linux (Fedora Silverblue 36)
Terminal Emulator
GNOME Console
Helix Version
helix 22.05-dev (3a398eec)