mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-11 15:37:24 +00:00
fish_git_prompt: Fix changing show_informative_status
If you changed $__fish_git_prompt_show_informative_status, it triggered a variable handler, which erased the chars, but neglected to unset $___fish_git_prompt_init, so we just kept chugging along with empty characters. What's the hardest thing in CS again? Cache something something? [ci skip]
This commit is contained in:
parent
66e238fad0
commit
d0921489ee
1 changed files with 2 additions and 0 deletions
|
@ -802,6 +802,8 @@ function __fish_git_prompt_repaint $varargs --description "Event handler, repain
|
|||
for name in cleanstate dirtystate invalidstate stagedstate stashstate stateseparator untrackedfiles upstream_ahead upstream_behind
|
||||
set -e ___fish_git_prompt_char_$name
|
||||
end
|
||||
# Clear init so we reset the chars next time.
|
||||
set -e ___fish_git_prompt_init
|
||||
end
|
||||
|
||||
commandline -f repaint 2>/dev/null
|
||||
|
|
Loading…
Reference in a new issue