From 63ebc9dad10e1f31058b7b4148c00198b67928de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Fri, 14 Apr 2017 11:15:17 +0200 Subject: vis: make certain operations interruptible with As currently implemented this will only work for operations which are individually fast, but repeated many times (e.g. `1000000itext`). --- vis-core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vis-core.h') 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) */ -- cgit v1.2.3