summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-02-03 16:09:43 -0500
committerJune McEnroe <june@causal.agency>2022-01-21 22:05:46 -0500
commit5c9244973b51e6c4f5f76cb6fcda14449d84a732 (patch)
tree673a4273bd326b5b32a700c327bc69cc03223034 /src
parentdash: Set H_SETUNIQUE (diff)
downloaddash-5c9244973b51e6c4f5f76cb6fcda14449d84a732.tar.gz
dash-5c9244973b51e6c4f5f76cb6fcda14449d84a732.zip
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.
Diffstat (limited to '')
-rw-r--r--src/jobs.c4
1 files changed, 2 insertions, 2 deletions
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++;
 	}
 
tagml.c?id=4bd6bb0f36f1e234a6aa8f1cd3d2660c9888b838&follow=1'>Split fields by tab onlyJune McEnroe 2021-01-12List both Makefile and html.sh under README.7June McEnroe 2021-01-12Add htagml exampleJune McEnroe 2021-01-12Use mandoc and htagml for bin htmlJune McEnroe 2021-01-12Add htagmlJune McEnroe 2021-01-12Replace causal.agency with a simple mdoc pageJune McEnroe 2021-01-11Publish "Using vi"June McEnroe 2021-01-11Enable diff.colorMovedJune McEnroe 2021-01-10Set less search case-insensitiveJune McEnroe 2021-01-10Set EXINITJune McEnroe 2021-01-09Add c -t flag to print expression typeJune McEnroe 2021-01-05Update taglineJune McEnroe