Fire pending events when interrupted while reading from keyboard

darcs-hash:20051125141826-ac50b-12e763c0a7f1b4e9136e38de7a8921ff2d1a74e7.gz
This commit is contained in:
axel 2005-11-26 00:18:26 +10:00
parent dfa251a1ab
commit 4a2bdeebef

View file

@ -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() )