From c49c67cecfc9536bd9ca80e70d1bf034957a069f Mon Sep 17 00:00:00 2001 From: John Hood Date: Wed, 2 Aug 2017 21:38:32 -0400 Subject: [PATCH] --predict-overwrite was still inserting one column sometimes. Fix. --- src/frontend/terminaloverlay.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();