From 0901cd8431c3fd5dede1b1dc05503a5801018631 Mon Sep 17 00:00:00 2001 From: Keith Winstein Date: Sat, 5 May 2012 11:21:01 -0400 Subject: [PATCH] Don't flag blank->blank predictions. --- src/frontend/terminaloverlay.cc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/frontend/terminaloverlay.cc b/src/frontend/terminaloverlay.cc index b52695c..b6de10e 100644 --- a/src/frontend/terminaloverlay.cc +++ b/src/frontend/terminaloverlay.cc @@ -41,6 +41,10 @@ void ConditionalOverlayCell::apply( Framebuffer &fb, uint64_t confirmed_epoch, i return; } + if ( replacement.is_blank() && fb.get_cell( row, col )->is_blank() ) { + flag = false; + } + if ( unknown ) { if ( flag && ( col != fb.ds.get_width() - 1 ) ) { fb.get_mutable_cell( row, col )->renditions.underlined = true; @@ -49,12 +53,6 @@ void ConditionalOverlayCell::apply( Framebuffer &fb, uint64_t confirmed_epoch, i } if ( !(*(fb.get_cell( row, col )) == replacement) ) { - /* - if ( replacement.is_blank() && fb.get_cell( row, col )->is_blank() ) { - return; - } - */ - *(fb.get_mutable_cell( row, col )) = replacement; if ( flag ) { fb.get_mutable_cell( row, col )->renditions.underlined = true;