From 5fc16a4a89ca0a728fce9c9e753a27e0b5a7f998 Mon Sep 17 00:00:00 2001 From: Keith Winstein Date: Thu, 13 Oct 2011 05:33:26 -0400 Subject: [PATCH] Scratch predictions when near wrapping --- terminaloverlay.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terminaloverlay.cpp b/terminaloverlay.cpp index 376d420..e821336 100644 --- a/terminaloverlay.cpp +++ b/terminaloverlay.cpp @@ -329,7 +329,7 @@ void PredictionEngine::new_user_byte( char the_byte, const Framebuffer &fb ) return; } - if ( (the_byte >= 0x20) && (the_byte <= 0x7E) ) { + if ( (the_byte >= 0x20) && (the_byte <= 0x7E) && (ccm->new_col < fb.ds.get_width() - 2) ) { /* XXX need to kill existing prediction if present */ const Cell *existing_cell = fb.get_cell( ccm->new_row, ccm->new_col );