aboutsummaryrefslogtreecommitdiff
path: root/editor.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-04-11 12:47:45 +0200
committerMarc André Tanner <mat@brain-dump.org>2015-04-11 12:47:45 +0200
commit0341d038cae51415b30381e59b174070c547b05c (patch)
tree8f8ce06da1d1f96a102534ed3b0659d1a24de4db /editor.h
parent3b7757793a46beac6e9c31ebce595cd3c41bac77 (diff)
downloadvis-0341d038cae51415b30381e59b174070c547b05c.tar.gz
vis-0341d038cae51415b30381e59b174070c547b05c.tar.xz
Eliminate global running variable
Diffstat (limited to 'editor.h')
-rw-r--r--editor.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/editor.h b/editor.h
index 10da800..bdf2865 100644
--- a/editor.h
+++ b/editor.h
@@ -242,6 +242,7 @@ struct Editor {
Mode *mode; /* currently active mode, used to search for keybindings */
Mode *mode_prev; /* previsouly active user mode */
Mode *mode_before_prompt; /* user mode which was active before entering prompt */
+ volatile bool running; /* exit main loop once this becomes false */
};
Editor *editor_new(Ui*);