Scratch predictions when near wrapping

This commit is contained in:
Keith Winstein
2011-10-13 05:33:26 -04:00
parent 0558e893a0
commit 5fc16a4a89
+1 -1
View File
@@ -329,7 +329,7 @@ void PredictionEngine::new_user_byte( char the_byte, const Framebuffer &fb )
return; 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 */ /* XXX need to kill existing prediction if present */
const Cell *existing_cell = fb.get_cell( ccm->new_row, ccm->new_col ); const Cell *existing_cell = fb.get_cell( ccm->new_row, ccm->new_col );