Fix tab bug and initial one-second delay
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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 );
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user