mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-02 14:01:20 -03:00
Fire pending events when interrupted while reading from keyboard
darcs-hash:20051125141826-ac50b-12e763c0a7f1b4e9136e38de7a8921ff2d1a74e7.gz
This commit is contained in:
5
input.c
5
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() )
|
||||
|
||||
Reference in New Issue
Block a user