Drop the unneeded input-function exit. It was only there for compatiability with readline, which we have rdropped.

darcs-hash:20070929072114-75c98-db188ce2bc31a0668867f9de05ffeed098b988c2.gz
This commit is contained in:
liljencrantz 2007-09-29 17:21:14 +10:00
parent 97b77d1b3a
commit dde3838f2d
3 changed files with 0 additions and 21 deletions

10
input.c
View file

@ -136,7 +136,6 @@ static const wchar_t *name_arr[] =
L"backward-kill-word", L"backward-kill-word",
L"dump-functions", L"dump-functions",
L"winch", L"winch",
L"exit",
L"history-token-search-backward", L"history-token-search-backward",
L"history-token-search-forward", L"history-token-search-forward",
L"self-insert", L"self-insert",
@ -220,7 +219,6 @@ static const wchar_t code_arr[] =
R_BACKWARD_KILL_WORD, R_BACKWARD_KILL_WORD,
R_DUMP_FUNCTIONS, R_DUMP_FUNCTIONS,
R_WINCH, R_WINCH,
R_EXIT,
R_HISTORY_TOKEN_SEARCH_BACKWARD, R_HISTORY_TOKEN_SEARCH_BACKWARD,
R_HISTORY_TOKEN_SEARCH_FORWARD, R_HISTORY_TOKEN_SEARCH_FORWARD,
R_SELF_INSERT, R_SELF_INSERT,
@ -339,14 +337,6 @@ static int interrupt_handler()
if( job_reap( 1 ) ) if( job_reap( 1 ) )
repaint(); repaint();
/*
Check if we should exit
*/
if( exit_status() )
{
return R_EXIT;
}
/* /*
Tell the reader an event occured Tell the reader an event occured
*/ */

View file

@ -40,7 +40,6 @@ enum
R_BACKWARD_KILL_WORD, R_BACKWARD_KILL_WORD,
R_DUMP_FUNCTIONS, R_DUMP_FUNCTIONS,
R_WINCH, R_WINCH,
R_EXIT,
R_HISTORY_TOKEN_SEARCH_BACKWARD, R_HISTORY_TOKEN_SEARCH_BACKWARD,
R_HISTORY_TOKEN_SEARCH_FORWARD, R_HISTORY_TOKEN_SEARCH_FORWARD,
R_SELF_INSERT, R_SELF_INSERT,

View file

@ -2688,16 +2688,6 @@ wchar_t *reader_readline()
break; break;
} }
/* exit, but only if line is empty */
case R_EXIT:
{
if( data->buff_len == 0 )
{
data->end_loop=1;
}
break;
}
/* /*
Evaluate. If the current command is unfinished, or if Evaluate. If the current command is unfinished, or if
the charater is escaped using a backslash, insert a the charater is escaped using a backslash, insert a