Skip to content

The cursor would disappear after deleting an item#46

Merged
prime-run merged 1 commit into
prime-run:masterfrom
SteveMCWin:delete_item_fix
Jan 28, 2026
Merged

The cursor would disappear after deleting an item#46
prime-run merged 1 commit into
prime-run:masterfrom
SteveMCWin:delete_item_fix

Conversation

@SteveMCWin

Copy link
Copy Markdown
Contributor

After deleting an item the cursor would disappear. If you were to try to toggle or archive, the program would panic with an out of range error. You could return the cursor by pressing 'j' or 'k', but it would put the cursor at the bottom of the list every time.
Fixed it by returning from the 'd' case in ui/update.
Also added clamping of the cursor to the updateRows too, to handle deleting the last item in the list.
Oh and I bumped the bubbles version to v0.21.0

… from the 'd' case in ui/update. Added clamping of the cursor to the updateRows too.
@prime-run prime-run self-assigned this Jan 25, 2026
@prime-run prime-run merged commit d13abc4 into prime-run:master Jan 28, 2026
3 checks passed
@prime-run

Copy link
Copy Markdown
Owner

Thank you @SteveMCWin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants