Don't try to predict scroll until we have versioned cell predictions.

Closes #6
This commit is contained in:
Keith Winstein
2012-04-19 01:11:16 -04:00
parent 1508d40b4c
commit 24d48f37a4
+3
View File
@@ -764,6 +764,8 @@ void PredictionEngine::newline_carriage_return( const Framebuffer &fb )
init_cursor( fb );
cursor().col = 0;
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();
i != overlays.end();
i++ ) {
@@ -776,6 +778,7 @@ void PredictionEngine::newline_carriage_return( const Framebuffer &fb )
}
}
}
*/
/* make blank prediction for last row */
ConditionalOverlayRow &the_row = get_or_make_row( cursor().row, fb.ds.get_width() );