Fix tab bug and initial one-second delay

This commit is contained in:
Keith Winstein
2011-08-14 00:26:13 -04:00
parent e56b8943f9
commit 549a3c3393
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -74,7 +74,8 @@ void Transport<MyState, RemoteState>::send_to_receiver( void )
if ( diff.empty() ) { if ( diff.empty() ) {
/* send empty ack */ /* send empty ack */
if ( (!connection.pending_timestamp()) if ( (!connection.pending_timestamp())
&& (timestamp() - sent_states.back().timestamp < int64_t( ACK_INTERVAL )) ) { && (timestamp() - sent_states.back().timestamp < int64_t( ACK_INTERVAL ))
&& (sent_states.back().num > 0) ) {
return; return;
} }
+1 -1
View File
@@ -157,7 +157,7 @@ namespace Terminal {
/* XXX other fields not necessary to compare -- for now */ /* XXX other fields not necessary to compare -- for now */
return ( width == x.width ) && ( height == x.height ) && ( cursor_col == x.cursor_col ) return ( width == x.width ) && ( height == x.height ) && ( cursor_col == x.cursor_col )
&& ( cursor_row == x.cursor_row ) && ( cursor_visible == x.cursor_visible ) && && ( cursor_row == x.cursor_row ) && ( cursor_visible == x.cursor_visible ) &&
( reverse_video == x.reverse_video ) && ( renditions == x.renditions ); ( reverse_video == x.reverse_video ) && ( renditions == x.renditions ) && ( tabs == x.tabs );
} }
}; };