When clearing a line in the screen handler, also make sure that the internal state reflects this. This helps avoid issues with wiping out parts of the prompt

darcs-hash:20070129174358-ac50b-73d002a44ef53ba63e33c66073eea6fec449b9d0.gz
This commit is contained in:
axel 2007-01-30 03:43:58 +10:00
parent da9f7227f5
commit 3fff030ee2

View file

@ -676,6 +676,11 @@ static void s_update( screen_t *scr, wchar_t *prompt )
{
s_move( scr, &output, start_pos, i );
s_write_mbs( &output, clr_eol);
if( s_line )
{
al_truncate( &s_line->text, 0 );
al_truncate( &s_line->color, 0 );
}
}
if( !s_line )