Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

prompt is broken when the terminal is resized if the prompt string is randomly changed. #6532

Copy link
Copy link

Description

@acomagu
Issue body actions

Env:

$ fish --version
fish, version 3.0.2
$ uname -a
Linux acm-manjaro 4.19.97-1-MANJARO #1 SMP Sat Jan 18 00:17:24 UTC 2020 x86_64 GNU/Linux
$ echo $TERM
xterm-256color

I reproduced in clean env(sh -c 'env -i TERM=$TERM HOME=$(mktemp -d) fish')

If I set as

$ function fish_prompt
    switch (random choice 1 2)
        case 1
            echo -e 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaa\n>'
        case 2
            echo -e 'bbbbbbbbbbb\n>'
    end
end

and I resized window, I god an merged string of them as prompt like

bbbbbbbbbbbaaaaaaaaaaaaaaaaaa
>

GIF:
deepin-screen-recorder_konsole_20200124215608

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething that's not working as intendedSomething that's not working as intended

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.