diff --git a/src/frontend/terminaloverlay.cc b/src/frontend/terminaloverlay.cc index f5cb29c..baf9e88 100644 --- a/src/frontend/terminaloverlay.cc +++ b/src/frontend/terminaloverlay.cc @@ -759,7 +759,7 @@ void PredictionEngine::new_user_byte( char the_byte, const Framebuffer &fb ) } /* do the insert */ - int rightmost_column = predict_overwrite ? cursor().col + 1 : fb.ds.get_width() - 1; + int rightmost_column = predict_overwrite ? cursor().col : fb.ds.get_width() - 1; for ( int i = rightmost_column; i > cursor().col; i-- ) { ConditionalOverlayCell &cell = the_row.overlay_cells[ i ]; cell.reset_with_orig();