From 4a2bdeebef2c762a54f0373a7072aa713fa2eea4 Mon Sep 17 00:00:00 2001 From: axel Date: Sat, 26 Nov 2005 00:18:26 +1000 Subject: [PATCH] Fire pending events when interrupted while reading from keyboard darcs-hash:20051125141826-ac50b-12e763c0a7f1b4e9136e38de7a8921ff2d1a74e7.gz --- input.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/input.c b/input.c index 2e438625f..8f04a51bd 100644 --- a/input.c +++ b/input.c @@ -49,6 +49,7 @@ implementation in fish is as of yet incomplete. #include "parser.h" #include "env.h" #include "expand.h" +#include "event.h" static void input_read_inputrc( wchar_t *fn ); @@ -1266,6 +1267,10 @@ static void add_vi_bindings() */ static int interrupt_handler() { + /* + Fire any pending events + */ + event_fire( 0, 0 ); if( job_reap( 1 ) ) repaint(); if( reader_interupted() )