Skip to content

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

Open

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!

Activity

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

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