Skip to content

gum filter truncates --placeholder text to a single character #913

@mickey1700

Description

@mickey1700

Describe the bug
When using the --placeholder flag with gum filter, only the first character of the placeholder is displayed.

To Reproduce
Steps to reproduce the behavior:

  1. Run the following command:
echo 'test' | gum filter --placeholder="Pick"

Expected behavior
The placeholder should display the full text: Pick.

Actual behavior
Only the first character of the placeholder is shown: P.

Additional context
This appears to be a regression, as previous versions displayed the full placeholder text correctly.

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