shrink_selection
breaks when expand_selection
is used on a different document in the same view
#6087
Labels
C-bug
Category: This is a bug
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 fromview.object_selections
. The resulting behavior is usually thatshrink_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
The text was updated successfully, but these errors were encountered: