mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 21:44:16 +00: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:
parent
da9f7227f5
commit
3fff030ee2
1 changed files with 5 additions and 0 deletions
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_write_mbs( &output, clr_eol);
|
||||
if( s_line )
|
||||
{
|
||||
al_truncate( &s_line->text, 0 );
|
||||
al_truncate( &s_line->color, 0 );
|
||||
}
|
||||
}
|
||||
|
||||
if( !s_line )
|
||||
|
|
Loading…
Reference in a new issue