Skip to content

Completion script $status is visible in a repainted prompt #7555

@faho

Description

@faho

As reported by @marcusatiliusregulus on gitter:

ive also noticed my promt sometimes redraws (keeping what i typed, but sadly erasing my errorcode output which is annoying). i just dont know what causes this behaviour. i suspect it being related to completions

As it turns out, it is!

> function fish_prompt; echo "[$status]"; end
[0] complete -c foo -a '(true)'
[0] bind \cg repaint
[0] false
[1] foo <TAB><\e><\cg>
# changes the prompt to "[0]"

Metadata

Metadata

Assignees

No one assigned

    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