summaryrefslogtreecommitdiffstats
path: root/background.h
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2020-03-02 14:05:49 -0800
committerKevin McCarthy <kevin@8t8.us>2020-03-02 14:14:10 -0800
commitfa8702ffe17af11dd7269755bb74c0b3e05de2dc (patch)
tree24227b88087453b11d3639a37018ac2b48000c16 /background.h
parent86e181256bf8cc0ac4b53005da17ba8659d5190b (diff)
Add $status_format 'B' expando for backgrounded count.
Add "%?B? Back:%B?" to the default $status_format. Rather than iterating ProcessList for each status bar refresh, just add a counter in background.c.
Diffstat (limited to 'background.h')
-rw-r--r--background.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/background.h b/background.h
index b43cec03..04eeedca 100644
--- a/background.h
+++ b/background.h
@@ -19,6 +19,8 @@
#ifndef _BACKGROUND_H
#define _BACKGROUND_H 1
+WHERE int BackgroundProcessCount;
+
int mutt_background_has_backgrounded (void);
int mutt_background_process_waitpid (void);
int mutt_background_edit_file (SEND_CONTEXT *sctx, const char *editor,