Don't try to predict scroll until we have versioned cell predictions.
Closes #6
This commit is contained in:
@@ -764,6 +764,8 @@ void PredictionEngine::newline_carriage_return( const Framebuffer &fb )
|
|||||||
init_cursor( fb );
|
init_cursor( fb );
|
||||||
cursor().col = 0;
|
cursor().col = 0;
|
||||||
if ( cursor().row == fb.ds.get_height() - 1 ) {
|
if ( cursor().row == fb.ds.get_height() - 1 ) {
|
||||||
|
/* Don't try to predict scroll until we have versioned cell predictions */
|
||||||
|
/*
|
||||||
for ( overlays_type::iterator i = overlays.begin();
|
for ( overlays_type::iterator i = overlays.begin();
|
||||||
i != overlays.end();
|
i != overlays.end();
|
||||||
i++ ) {
|
i++ ) {
|
||||||
@@ -776,6 +778,7 @@ void PredictionEngine::newline_carriage_return( const Framebuffer &fb )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
/* make blank prediction for last row */
|
/* make blank prediction for last row */
|
||||||
ConditionalOverlayRow &the_row = get_or_make_row( cursor().row, fb.ds.get_width() );
|
ConditionalOverlayRow &the_row = get_or_make_row( cursor().row, fb.ds.get_width() );
|
||||||
|
|||||||
Reference in New Issue
Block a user