Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
faho opened this issue Dec 17, 2020 · 0 comments
Closed

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

faho opened this issue Dec 17, 2020 · 0 comments
Labels
bug Something that's not working as intended
Milestone

Comments

@faho
Copy link
Member

faho commented Dec 17, 2020

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]"
@faho faho added the bug Something that's not working as intended label Dec 17, 2020
@faho faho added this to the fish 3.2.0 milestone Dec 17, 2020
@faho faho closed this as completed in 7e7355b Dec 19, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something that's not working as intended
Projects
None yet
Development

No branches or pull requests

1 participant