Skip to content

Input post completion text does not appear if the user uses the default #309

@doonv

Description

@doonv

I have a Input that looks like this:

let result: String = Input::new()
        .with_prompt("My Prompt")
        .with_post_completion_text("Completed Prompt")
        .default("My Default".to_string())
        .interact_text()
        .unwrap();

If the user types in their own input, everything works as intended. However if the user just presses Enter to use the default string, then the post completion text does not appear, instead the prompt appears.

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