From a9b60d2493ca8b7d65fd808691cbe19876418e58 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Fri, 22 May 2020 17:45:40 +0200 Subject: [PATCH] Call fish_prompt after background job finishes We don't need to call it if a job was stopped, because in that case read_i() will fire fish_prompt already, because the newly stopped job was probably a foreground job. Fixes #1018 --- share/functions/fish_job_summary.fish | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/share/functions/fish_job_summary.fish b/share/functions/fish_job_summary.fish index 573271f08..7959add7c 100644 --- a/share/functions/fish_job_summary.fish +++ b/share/functions/fish_job_summary.fish @@ -49,4 +49,8 @@ function fish_job_summary -a job_id is_foreground cmd_line signal_or_end_name si $job_id $cmd_line $signal_or_end_name $signal_desc end end >&2 + + if test $is_foreground -eq 0; and test $signal_or_end_name != STOPPED + commandline -f repaint + end end