Skip to content

fix(cclip): maintain selection index after item deletion#27

Merged
Mjoyufull merged 1 commit intodevfrom
fix/forgottaganddelete
Feb 23, 2026
Merged

fix(cclip): maintain selection index after item deletion#27
Mjoyufull merged 1 commit intodevfrom
fix/forgottaganddelete

Conversation

@Mjoyufull
Copy link
Owner

@Mjoyufull Mjoyufull commented Feb 23, 2026

fixing maintaining selection index after item delection in cclip
fasttrack


Summary by cubic

Fixes selection behavior in cclip after reloads. If the selected item is deleted, we keep the same index; otherwise we restore by rowid and keep it in view.

  • Bug Fixes
    • Restore selection by matching rowid when item still exists.
    • If deleted, keep previous index (clamped to last item) or clear when empty.
    • Adjust scroll_offset so the selection stays visible.

Written for commit 1b106ce. Summary will update on new commits.

@Mjoyufull Mjoyufull self-assigned this Feb 23, 2026
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

@Mjoyufull
Copy link
Owner Author

LGTM fast track

@Mjoyufull Mjoyufull merged commit 6ff2e56 into dev Feb 23, 2026
1 of 5 checks passed
@Mjoyufull Mjoyufull deleted the fix/forgottaganddelete branch February 23, 2026 10:42
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.

1 participant