From 3fff030ee2cd8bbbcd0b583235a58b78e4aafc7c Mon Sep 17 00:00:00 2001 From: axel Date: Tue, 30 Jan 2007 03:43:58 +1000 Subject: [PATCH] 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 --- screen.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/screen.c b/screen.c index 404743f72..b0e0840ae 100644 --- a/screen.c +++ b/screen.c @@ -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 )