From 24d48f37a4664cca3a8701bf5a8c9f7684387d92 Mon Sep 17 00:00:00 2001 From: Keith Winstein Date: Thu, 19 Apr 2012 01:11:16 -0400 Subject: [PATCH] Don't try to predict scroll until we have versioned cell predictions. Closes #6 --- src/frontend/terminaloverlay.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/frontend/terminaloverlay.cc b/src/frontend/terminaloverlay.cc index 5c321f5..a6e066b 100644 --- a/src/frontend/terminaloverlay.cc +++ b/src/frontend/terminaloverlay.cc @@ -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() );