aboutsummaryrefslogtreecommitdiff
path: root/vis-core.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2017-04-14 11:15:17 +0200
committerMarc André Tanner <mat@brain-dump.org>2017-04-14 11:15:17 +0200
commit63ebc9dad10e1f31058b7b4148c00198b67928de (patch)
treebe6b05a2db8461cf7acc1aabbbc926b7bcc07398 /vis-core.h
parentc25e0c110430bd16056c6fe12e9e6676ebf1e5f5 (diff)
downloadvis-63ebc9dad10e1f31058b7b4148c00198b67928de.tar.gz
vis-63ebc9dad10e1f31058b7b4148c00198b67928de.tar.xz
vis: make certain operations interruptible with <C-c>
As currently implemented this will only work for operations which are individually fast, but repeated many times (e.g. `1000000itext<Escape>`).
Diffstat (limited to 'vis-core.h')
-rw-r--r--vis-core.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/vis-core.h b/vis-core.h
index fc9853c..654085d 100644
--- a/vis-core.h
+++ b/vis-core.h
@@ -192,7 +192,7 @@ struct Vis {
int nesting_level; /* parsing state to hold keep track of { } nesting level */
volatile bool running; /* exit main loop once this becomes false */
int exit_status; /* exit status when terminating main loop */
- volatile sig_atomic_t cancel_filter; /* abort external command/filter (SIGINT occured) */
+ volatile sig_atomic_t interrupted; /* abort command (SIGINT occured) */
volatile sig_atomic_t sigbus; /* one of the memory mapped region became unavailable (SIGBUS) */
volatile sig_atomic_t need_resize; /* need to resize UI (SIGWINCH occured) */
volatile sig_atomic_t resume; /* need to resume UI (SIGCONT occured) */