Skip to content

(bug) Popup not fits the screen #304

Closed

Description

@amakrushin

Cannot see all information on the Help popup.

revdiff version: latest
display size: approx 100 by 40 characters (16 inch notebook monitor, DPI scale x2)

  1. Open revdiff
  2. Type ? to see the help

Expected

  • all text fits the screen

Actual

  • help not fits my screen, and not readable.

Screenshot: Search not visible:
Image

Proposing to regroup into single column - Annottaions, View, Quit goes below Search

Activity

  1. changed the title [-](bug) Popup hot fits the screen[/-] [+](bug) Popup not fits the screen[/+] on Aug 4, 2026
  2. umputun commented on Aug 4, 2026

    @umputun
    Owner

    fixed in #306, merged to master.

    the popup sized itself to its content and never looked at the terminal, so anything past the edge was silently dropped. At 100x40 it rendered 41x122, which is why your screenshot lost the top and bottom rows and had the right column cut off mid-word. With --vim-motion it was 51x137.

    it now clamps to the terminal. Two columns are kept when they fit and it falls back to a single column when they don't, which is your suggestion applied conditionally: a single column on its own is taller, roughly 71 rows against 41, so it would have made the height worse. Height is handled by scrolling instead, with j/k, page and half-page, Home/End, g/G and the mouse wheel, plus a ↑/↓ scroll · N-M of T hint row so it is obvious there is more past the fold.

    on a terminal too narrow even for one column, rows are cut with a … marker rather than just ending.

    this will be in the next release.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions