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

Fix the infinite loop when copying the cursor to the top of the file #5888

Merged
merged 1 commit into from
Feb 9, 2023

Conversation

trink
Copy link
Contributor

@trink trink commented Feb 9, 2023

Example:

test
testitem

Select line 2 with x, then type Alt-C; Helix will go into an infinite loop. The saturating_sub keeps the head_row and anchor_row pinned at 0, and a selection is never made since the first line is too short.

@archseer
Copy link
Member

archseer commented Feb 9, 2023

Can you rebase? Just fixed the lints on master

@pascalkuthe pascalkuthe added C-bug Category: This is a bug E-easy Call for participation: Experience needed to fix: Easy / not much labels Feb 9, 2023
Example:
```
test
testitem
```

Select line 2 with x, then type Alt-C; Helix will go into an infinite
loop. The saturating_sub keeps the head_row and anchor_row pinned at 0,
and a selection is never made since the first line is too short.
@trink trink force-pushed the copy_selection_hang branch from b7204e6 to ab84b0f Compare February 9, 2023 02:53
@archseer archseer merged commit 9d73a0d into helix-editor:master Feb 9, 2023
@trink trink deleted the copy_selection_hang branch February 9, 2023 15:25
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 E-easy Call for participation: Experience needed to fix: Easy / not much
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants