Remove finsihed jobs after events

darcs-hash:20051009115309-ac50b-cc4526f26b7de8ef1e41c338ea653088b0ee2471.gz
This commit is contained in:
axel
2005-10-09 21:53:09 +10:00
parent 8093435b7e
commit 632ff36fe3
3 changed files with 5 additions and 3 deletions

View File

@@ -623,6 +623,7 @@ void reader_write_title()
if( exec_subshell( title, &l ) != -1 )
{
int i;
job_do_notification();
writestr( L"\e]2;" );
for( i=0; i<al_get_count( &l ); i++ )
{
@@ -658,6 +659,7 @@ static void write_prompt()
{
if( exec_subshell( data->prompt, &prompt_list ) == -1 )
{
job_do_notification();
/* If executing the prompt fails, make sure we at least don't print any junk */
al_foreach( &prompt_list, (void (*)(const void *))&free );
al_destroy( &prompt_list );