mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 21:44:16 +00:00
Fire pending events when interrupted while reading from keyboard
darcs-hash:20051125141826-ac50b-12e763c0a7f1b4e9136e38de7a8921ff2d1a74e7.gz
This commit is contained in:
parent
dfa251a1ab
commit
4a2bdeebef
1 changed files with 5 additions and 0 deletions
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() )
|
||||
|
|
Loading…
Reference in a new issue