vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit a34e1b4b49bd5c0e8d9fb23bcee3905aa09a0de2 parent d8b5d3383ca49facdb7651ee478f61cbb2b407b5 Author: Marc André Tanner <mat@brain-dump.org> Date: Fri, 17 Oct 2014 15:41:30 +0200 Make running flag volatile Diffstat:
| M | vis.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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 */