summaryrefslogtreecommitdiff
path: root/src/getchar.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-06-10 20:56:58 +0200
committerBram Moolenaar <Bram@vim.org>2020-06-10 20:56:58 +0200
commitbe5ee8686a50acf07b823bd293f9c765e533d213 (patch)
treefc5056db66c81eefa83a30afae305b9b027677d8 /src/getchar.c
parent6ba24d87630b1ec2b8c7ff71550c9e41d143800e (diff)
downloadvim-git-be5ee8686a50acf07b823bd293f9c765e533d213.tar.gz
patch 8.2.0952: no simple way to interrupt Vimv8.2.0952
Problem: No simple way to interrupt Vim. Solution: Add the SigUSR1 autocommand, triggered by SIGUSR1. (Jacob Hayes, closes #1718)
Diffstat (limited to 'src/getchar.c')
-rw-r--r--src/getchar.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/getchar.c b/src/getchar.c
index fcee7dda7..2beffa578 100644
--- a/src/getchar.c
+++ b/src/getchar.c
@@ -2204,6 +2204,13 @@ parse_queued_messages(void)
if (has_sound_callback_in_queue())
invoke_sound_callback();
# endif
+#ifdef SIGUSR1
+ if (got_sigusr1)
+ {
+ apply_autocmds(EVENT_SIGUSR1, NULL, NULL, FALSE, curbuf);
+ got_sigusr1 = FALSE;
+ }
+#endif
break;
}