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:
axel 2006-12-02 02:30:09 +10:00
parent 7f18dd6a4a
commit 02802b509d
2 changed files with 6 additions and 5 deletions

View file

@ -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;
}

View file

@ -2134,7 +2134,7 @@ wchar_t *reader_readline()
case R_NULL:
{
exec_prompt();
// exec_prompt();
s_reset( &data->screen );
repaint();
break;