mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-26 10:43:47 +08:00
Make keyboard shortcuts that execute a shellscript function (^D, for example) a lot quicker. This is done by not changing the titlebar message or reexecuting the prompt. A full repaint is still performed though. This patch also changes the behaviour of the 'null' virtual keypress - it no longer reexecutes the prompt, it only causes a repaint.
darcs-hash:20061201163009-ac50b-65508b8e5aa3b2c73695feb0a47a718419868f8e.gz
This commit is contained in:
parent
7f18dd6a4a
commit
02802b509d
9
input.c
9
input.c
|
@ -1610,13 +1610,14 @@ static wint_t input_exec_binding( mapping *m, const wchar_t *seq )
|
|||
write( 1, "\r", 1 );
|
||||
tputs(clr_eol,1,&writeb);
|
||||
|
||||
reader_run_command( m->command );
|
||||
|
||||
eval( m->command, 0, TOP );
|
||||
|
||||
/*
|
||||
We still need to return something to the caller, R_NULL
|
||||
tells the reader that nothing happened, but it might be a
|
||||
godd idea to redraw and reexecute the prompt.
|
||||
tells the reader that no key press needs to be handled, but
|
||||
it might be a good idea to redraw.
|
||||
*/
|
||||
|
||||
return R_NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user