mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-06 00:41:15 -03:00
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:
5
screen.c
5
screen.c
@@ -676,6 +676,11 @@ static void s_update( screen_t *scr, wchar_t *prompt )
|
|||||||
{
|
{
|
||||||
s_move( scr, &output, start_pos, i );
|
s_move( scr, &output, start_pos, i );
|
||||||
s_write_mbs( &output, clr_eol);
|
s_write_mbs( &output, clr_eol);
|
||||||
|
if( s_line )
|
||||||
|
{
|
||||||
|
al_truncate( &s_line->text, 0 );
|
||||||
|
al_truncate( &s_line->color, 0 );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if( !s_line )
|
if( !s_line )
|
||||||
|
|||||||
Reference in New Issue
Block a user