From 003382b6fd70f1dd466ae102a11c5ff5f89dc6e6 Mon Sep 17 00:00:00 2001 From: Floris Westerman Date: Sat, 2 Jul 2022 01:19:07 +0200 Subject: [PATCH] fix(fish): clear after cursor for next prompt resolves #2467 --- src/shell/scripts/omp.fish | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/shell/scripts/omp.fish b/src/shell/scripts/omp.fish index 0a3f40c6..1613ee81 100644 --- a/src/shell/scripts/omp.fish +++ b/src/shell/scripts/omp.fish @@ -5,6 +5,10 @@ set --global omp_tooltip_command "" set --global omp_transient 0 function fish_prompt + # clear from cursor to end of screen as + # commandline --function repaint does not do this + # see https://github.com/fish-shell/fish-shell/issues/8418 + printf \e\[0J set --local omp_status_cache_temp $status if test "$omp_transient" = "1" '::OMP::' print transient --config $POSH_THEME --shell fish --error $omp_status_cache --execution-time $omp_duration --stack-count $omp_stack_count --shell-version $FISH_VERSION