Allow non-inserting prediction.
This may be useful for users who find prediction's activity right of the cursor distracting. Prediction underscoring is still a little weird sometimes, it replays a history of known/unknown changes as acks come in from the server.
This commit is contained in:
@@ -262,6 +262,7 @@ namespace Overlay {
|
||||
|
||||
private:
|
||||
DisplayPreference display_preference;
|
||||
bool predict_overwrite;
|
||||
|
||||
bool active( void ) const;
|
||||
|
||||
@@ -272,6 +273,7 @@ namespace Overlay {
|
||||
|
||||
public:
|
||||
void set_display_preference( DisplayPreference s_pref ) { display_preference = s_pref; }
|
||||
void set_predict_overwrite( bool overwrite ) { predict_overwrite = overwrite; }
|
||||
|
||||
void apply( Framebuffer &fb ) const;
|
||||
void new_user_byte( char the_byte, const Framebuffer &fb );
|
||||
@@ -302,7 +304,8 @@ namespace Overlay {
|
||||
last_quick_confirmation( 0 ),
|
||||
send_interval( 250 ),
|
||||
last_height( 0 ), last_width( 0 ),
|
||||
display_preference( Adaptive )
|
||||
display_preference( Adaptive ),
|
||||
predict_overwrite( false )
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user