aboutsummaryrefslogtreecommitdiff
path: root/src/ui.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.c')
-rw-r--r--src/ui.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ui.c b/src/ui.c
index 653d4df159..685b44ed28 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -34,6 +34,7 @@
#include "os_unix.h"
#include "os/time.h"
#include "os/input.h"
+#include "os/signal.h"
#include "screen.h"
#include "term.h"
#include "window.h"
@@ -145,7 +146,7 @@ ui_inchar (
/* If we are going to wait for some time or block... */
if (wtime == -1 || wtime > 100L) {
/* ... allow signals to kill us. */
- (void)vim_handle_signal(SIGNAL_UNBLOCK);
+ signal_accept_deadly();
/* ... there is no need for CTRL-C to interrupt something, don't let
* it set got_int when it was mapped. */
@@ -161,7 +162,7 @@ ui_inchar (
if (wtime == -1 || wtime > 100L)
/* block SIGHUP et al. */
- (void)vim_handle_signal(SIGNAL_BLOCK);
+ signal_reject_deadly();
ctrl_c_interrupts = TRUE;