aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2014-10-17 15:41:30 +0200
committerMarc André Tanner <mat@brain-dump.org>2014-10-17 15:41:30 +0200
commit6be820495d70e6f10a92fbdaf6a1e4a278b02ab6 (patch)
tree231dc7985ce18eb57cf6b5dfa2ede3e4a90c32e0
parentbd354843c2751ec6c7b5b85ef08f9145f6232e6e (diff)
downloadvis-6be820495d70e6f10a92fbdaf6a1e4a278b02ab6.tar.gz
vis-6be820495d70e6f10a92fbdaf6a1e4a278b02ab6.tar.xz
Make running flag volatile
-rw-r--r--vis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vis.c b/vis.c
index 53a7dbd..9054ccc 100644
--- a/vis.c
+++ b/vis.c
@@ -146,7 +146,7 @@ typedef struct { /* command definitions for the ':'-prom
} Command;
/** global variables */
-static bool running = true; /* exit main loop once this becomes false */
+static volatile bool running = true; /* exit main loop once this becomes false */
static Editor *vis; /* global editor instance, keeps track of all windows etc. */
static Mode *mode; /* currently active mode, used to search for keybindings */
static Mode *mode_prev; /* mode which was active previously */