Skip to content
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

shrink_selection does not properly restore cursor with multiple selections. #6092

Closed
gibbz00 opened this issue Feb 23, 2023 · 0 comments · Fixed by #6093 · May be fixed by #6198
Closed

shrink_selection does not properly restore cursor with multiple selections. #6092

gibbz00 opened this issue Feb 23, 2023 · 0 comments · Fixed by #6093 · May be fixed by #6198
Labels
C-bug Category: This is a bug

Comments

@gibbz00
Copy link
Contributor

gibbz00 commented Feb 23, 2023

Summary

Asciinema says most of it.

Reproduction Steps

asciicast

Platform

Linux

Terminal Emulator

kitty

@gibbz00 gibbz00 added the C-bug Category: This is a bug label Feb 23, 2023
gibbz00 added a commit to gibbz00/helix that referenced this issue Feb 23, 2023
Cause were some incorrect assumptions that missed an edge case in the
`Selection.contains()` calculation. Tests were added accordingly.
archseer pushed a commit that referenced this issue Mar 9, 2023
* Fix #6092

Cause were some incorrect assumptions that missed an edge case in the
`Selection.contains()` calculation. Tests were added accordingly.

* Fix Selection.contains() edge-case handling.

Removing the len check short-circuit was the only thing needed as
pointed out by @dead10ck.
sagnibak pushed a commit to sagnibak/helix that referenced this issue Mar 21, 2023
* Fix helix-editor#6092

Cause were some incorrect assumptions that missed an edge case in the
`Selection.contains()` calculation. Tests were added accordingly.

* Fix Selection.contains() edge-case handling.

Removing the len check short-circuit was the only thing needed as
pointed out by @dead10ck.
wes-adams pushed a commit to wes-adams/helix that referenced this issue Jul 4, 2023
* Fix helix-editor#6092

Cause were some incorrect assumptions that missed an edge case in the
`Selection.contains()` calculation. Tests were added accordingly.

* Fix Selection.contains() edge-case handling.

Removing the len check short-circuit was the only thing needed as
pointed out by @dead10ck.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug
Projects
None yet
1 participant