mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.0952: no simple way to interrupt Vim
Problem: No simple way to interrupt Vim. Solution: Add the SigUSR1 autocommand, triggered by SIGUSR1. (Jacob Hayes, closes #1718)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user