diff --git a/src/statesync/completeterminal.cc b/src/statesync/completeterminal.cc index d65ff9d..c22c6d0 100644 --- a/src/statesync/completeterminal.cc +++ b/src/statesync/completeterminal.cc @@ -87,8 +87,11 @@ string Complete::diff_from( const Complete &existing ) const new_res->MutableExtension( resize )->set_width( terminal.get_fb().ds.get_width() ); new_res->MutableExtension( resize )->set_height( terminal.get_fb().ds.get_height() ); } - Instruction *new_inst = output.add_instruction(); - new_inst->MutableExtension( hostbytes )->set_hoststring( display.new_frame( true, existing.get_fb(), terminal.get_fb() ) ); + string update = display.new_frame( true, existing.get_fb(), terminal.get_fb() ); + if ( !update.empty() ) { + Instruction *new_inst = output.add_instruction(); + new_inst->MutableExtension( hostbytes )->set_hoststring( update ); + } } return output.SerializeAsString();