mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-03 23:11:14 -03:00
Fix bug where quiting from the read builtin could cause the prompt not to repaint
darcs-hash:20070129174501-ac50b-7e7f62ab8a1864617291208919551505bae6e156.gz
This commit is contained in:
7
reader.c
7
reader.c
@@ -1820,11 +1820,9 @@ void reader_pop()
|
||||
}
|
||||
else
|
||||
{
|
||||
end_loop = 0;
|
||||
history_set_mode( data->name );
|
||||
exec_prompt();
|
||||
write( 1, "\r", 1 );
|
||||
s_reset( &data->screen );
|
||||
repaint();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2403,7 +2401,6 @@ wchar_t *reader_readline()
|
||||
{
|
||||
if( data->buff_len == 0 )
|
||||
{
|
||||
writestr( L"\n" );
|
||||
data->end_loop=1;
|
||||
}
|
||||
break;
|
||||
@@ -2441,7 +2438,6 @@ wchar_t *reader_readline()
|
||||
finished=1;
|
||||
data->buff_pos=data->buff_len;
|
||||
repaint();
|
||||
writestr( L"\n" );
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -2644,6 +2640,7 @@ wchar_t *reader_readline()
|
||||
last_char = c;
|
||||
}
|
||||
|
||||
writestr( L"\n" );
|
||||
al_destroy( &comp );
|
||||
if( !reader_exit_forced() )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user