Description
Summary
Introduced in #1340
Not linking the selection change to a document leads to broken behavior.
Say expand_selection
is used on the current document, and then again on another document in the same view,
If shrink_selection
is used on the original document, then the wrong selection will be popped from
view.object_selections
. The resulting behavior is usually that shrink_selection
stops working on the original document.
Also, not linking it to the document will in no way free the selection memory when the document is closed, which I presume is a memory leak. Guess desired behavior if document is reopened anyways.
Reproduction Steps
Jittering and weird color/characters is only on the asciinema. Not visible on my screen during recording nor normal use of helix.
Helix log
No response
Platform
Linux
Terminal Emulator
foot