fix(fish): re-render rprompt when no tooltip

This commit is contained in:
Jan De Dobbeleer 2022-04-05 08:06:49 +02:00 committed by Jan De Dobbeleer
parent 923155e253
commit f9efe17da3

View file

@ -35,9 +35,12 @@ function fish_right_prompt
return
end
if test -n "$omp_tooltip_command"
::OMP:: print tooltip --config $POSH_THEME --shell fish --command $omp_tooltip_command
set omp_tooltip_command ""
return
set omp_tooltip_prompt (::OMP:: print tooltip --config $POSH_THEME --shell fish --command $omp_tooltip_command)
if test -n "$omp_tooltip_prompt"
echo -n $omp_tooltip_prompt
set omp_tooltip_command ""
return
end
end
::OMP:: print right --config $POSH_THEME --shell fish --error $omp_status_cache --execution-time $omp_duration --stack-count $omp_stack_count
end