Skip to content

Panicks with attempt to subtract with overflow when removing items #20

@PPakalns

Description

@PPakalns

self.focus = cmp::min(self.focus, self.list.height() - 1);

When container is fully emptied by calling remove_item(row) subtraction overflow happens.

This happens only in debug mode due to additional Rust checks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions