Skip to content
This repository
Browse code

Improve rendition-matching prediction heuristic.

  • Loading branch information...
commit bf8a29f783ceab86bac8761099b81d832c7ff68d 1 parent 63e66e9
Keith Winstein authored August 14, 2012

Showing 1 changed file with 10 additions and 0 deletions. Show diff stats Hide diff stats

  1. 10  src/frontend/terminaloverlay.cc
10  src/frontend/terminaloverlay.cc
@@ -534,6 +534,16 @@ void PredictionEngine::cull( const Framebuffer &fb )
534 534
 	  }
535 535
 	}
536 536
 
  537
+	/* match rest of row to the actual renditions */
  538
+	{
  539
+	  const Renditions &actual_renditions = fb.get_cell( i->row_num, j->col )->renditions;
  540
+	  for ( overlay_cells_type::iterator k = j;
  541
+		k != i->overlay_cells.end();
  542
+		k++ ) {
  543
+	    k->replacement.renditions = actual_renditions;
  544
+	  }
  545
+	}
  546
+
537 547
 	/* no break */
538 548
       case CorrectNoCredit:
539 549
 	j->reset();

0 notes on commit bf8a29f

Please sign in to comment.
Something went wrong with that request. Please try again.