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:
John Hood
2015-06-07 04:44:21 -04:00
parent 91de8901f5
commit 8aac3cc927
5 changed files with 52 additions and 20 deletions
+4 -1
View File
@@ -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 )
{
}
};