Skip to content

gum file always clips the top most option #977

@nameOfUser0236

Description

@nameOfUser0236

Describe the bug
gum file is always 1-2 row(s) too high for the terminal, resulting in the top most option and header being offscreen

To Reproduce
Steps to reproduce the behavior:

mkdir gum.tmp
touch gum.tmp/a.txt
touch gum.tmp/b.txt
gum file ./gum.txt

Expected behavior
In the example above, files a.txt and b.txt should both be shown.

The Problem
The bug results in a.txt and the header (if it exists) being shown offscreen.
a.txt still exists, and can be selected; the bug is purely visual

Screenshots

Setup
Image

The Problem
Image

  • OS: EndeavourOS
  • gum version 0.17.0

Additional context
I have found a workaround, utilizing padding to offset the header and top most item back onscreen.

  • without header: gum file --padding="1 0 0 0" ./gum.tmp
  • with header gum file --padding="2 0 0 0" --header=foo ./gum.tmp

Workaround
Image

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