summaryrefslogtreecommitdiffstats
path: root/src/ex_eval.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-11-25 00:05:32 +0100
committerBram Moolenaar <Bram@vim.org>2019-11-25 00:05:32 +0100
commit67a2deb9cb4ac2224cb1e4d240a5d0659f036264 (patch)
tree024c2f55f38fb92a7da3c6887dbd0c510c7ae6cb /src/ex_eval.c
parenta106e6cde682bda4ad10ed745acb51975fcb02e0 (diff)
patch 8.1.2341: not so easy to interrupt a script programaticallyv8.1.2341
Problem: Not so easy to interrupt a script programatically. Solution: Add the interrupt() function. (Yasuhiro Matsumoto, closes #2834)
Diffstat (limited to 'src/ex_eval.c')
-rw-r--r--src/ex_eval.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ex_eval.c b/src/ex_eval.c
index f1a8b97fcc..097280a671 100644
--- a/src/ex_eval.c
+++ b/src/ex_eval.c
@@ -85,6 +85,7 @@ static int cause_abort = FALSE;
* until the throw point for error messages has been reached. That is, during
* cancellation of an expression evaluation after an aborting function call or
* due to a parsing error, aborting() always returns the same value.
+ * "got_int" is also set by calling interrupt().
*/
int
aborting(void)