From 248d11c4621679457ada0d71c67c5944cf750302 Mon Sep 17 00:00:00 2001 From: axel Date: Wed, 9 Aug 2006 21:34:24 +1000 Subject: [PATCH] Only write out titlebar message if it is of non-zero length darcs-hash:20060809113424-ac50b-59988efa4dd788d6623023b642fd96989c4c9ada.gz --- reader.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/reader.c b/reader.c index 3a5b69c4d..a50fce9c3 100644 --- a/reader.c +++ b/reader.c @@ -655,12 +655,15 @@ void reader_write_title() if( exec_subshell( title, &l ) != -1 ) { int i; - writestr( L"\e]2;" ); - for( i=0; i 0 ) { - writestr( (wchar_t *)al_get( &l, i ) ); + writestr( L"\e]2;" ); + for( i=0; i