Mercurial > vim
comparison src/getchar.c @ 20800:e76b83c07bd8 v8.2.0952
patch 8.2.0952: no simple way to interrupt Vim
Commit: https://github.com/vim/vim/commit/be5ee8686a50acf07b823bd293f9c765e533d213
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jun 10 20:56:58 2020 +0200
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 10 Jun 2020 21:00:04 +0200 |
parents | e3078150144d |
children | e67123c115d2 |
comparison
equal
deleted
inserted
replaced
20799:a3f74832de9b | 20800:e76b83c07bd8 |
---|---|
2202 # endif | 2202 # endif |
2203 # ifdef FEAT_SOUND_CANBERRA | 2203 # ifdef FEAT_SOUND_CANBERRA |
2204 if (has_sound_callback_in_queue()) | 2204 if (has_sound_callback_in_queue()) |
2205 invoke_sound_callback(); | 2205 invoke_sound_callback(); |
2206 # endif | 2206 # endif |
2207 #ifdef SIGUSR1 | |
2208 if (got_sigusr1) | |
2209 { | |
2210 apply_autocmds(EVENT_SIGUSR1, NULL, NULL, FALSE, curbuf); | |
2211 got_sigusr1 = FALSE; | |
2212 } | |
2213 #endif | |
2207 break; | 2214 break; |
2208 } | 2215 } |
2209 | 2216 |
2210 // When not nested we'll go back to waiting for a typed character. If it | 2217 // When not nested we'll go back to waiting for a typed character. If it |
2211 // was safe before then this triggers a SafeStateAgain autocommand event. | 2218 // was safe before then this triggers a SafeStateAgain autocommand event. |