Skip to content

Job status message erased when using multiline prompt #8817

@zanchey

Description

@zanchey

Discussed in #8742

Originally posted by lacygoill February 23, 2022
Consider this minimal prompt:

function fish_prompt
    printf '\n$ '
end

Written in /tmp/home/.config/fish/config.fish.

Start fish like this:

$ XDG_CONFIG_HOME=/tmp/home/.config fish

Finally, start a job:

$ sleep 1 &

When the job terminates, it writes a message on the terminal:

$ fish: Job 1, 'sleep 1 &' has ended

But most of the time, this message is automatically cleared (maybe 5 out of 6 times):

gif

The issue disappears if the newline is removed from the prompt.

Is there a way to prevent the message from being cleared?

I think this is another bug in multiline prompt handling.

Metadata

Metadata

Assignees

Labels

bugSomething that's not working as intended

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions