From 5c9244973b51e6c4f5f76cb6fcda14449d84a732 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Wed, 3 Feb 2021 16:09:43 -0500 Subject: dash: Warn twice about stopped jobs Not really sure why this previously set job_warning to 2 rather than 1. Anyway I often just press ^D again after the warning without really thinking, so do it twice. --- src/jobs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/jobs.c b/src/jobs.c index f30313b..8fb9d4b 100644 --- a/src/jobs.c +++ b/src/jobs.c @@ -1207,12 +1207,12 @@ stoppedjobs(void) int retval; retval = 0; - if (job_warning) + if (job_warning > 1) goto out; jp = curjob; if (jp && jp->state == JOBSTOPPED) { out2str("You have stopped jobs.\n"); - job_warning = 2; + job_warning++; retval++; } -- cgit 1.4.1