Skip to content
This repository was archived by the owner on Aug 14, 2023. It is now read-only.
This repository was archived by the owner on Aug 14, 2023. It is now read-only.

Add G (jump to end) keybinding  #8

@rwev

Description

@rwev

Fixed. Unfortunately as a side effect, I had to remove the G (jump to end) vim-style keybinding because it isn't compatible with how the displayed item boundaries are managed.

Right now, the beginning and end boundaries should always have a difference between them equal to the height of the viewport, curses.LINES - 2, Otherwise, changing the book selection to one with more chapters would result in truncation.

Jumping to the end of the list and showing the last curses.LINES - 2 items may result in the beginning index becoming negative, depending on the length of the list, which would break the ListWindow.draw routine and further boundary changes.

Originally posted by @rwev in #5 (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