From 30bee80a6902eb09c51bed9c9f54c7617c4d53db Mon Sep 17 00:00:00 2001 From: Joe Wilm Date: Mon, 28 Nov 2016 14:13:11 -0800 Subject: Refactor cell selection out of renderer The terminal now has a `renderable_cells()` function that returns a `RenderableCellIter` iterator. This allows reuse of the cell selection code by multiple renderers, makes it testable, and makes it independently optimizable. The render API now takes an `Iterator` to support both the new renderable cells iterator and the `render_string()` method which generates its own iterator. The `vim_large_window_scoll` ref test was added here because it provides a nice large and busy grid to benchmark the cell selection with. --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index aa9275c2..8f08303b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -19,8 +19,8 @@ #![feature(drop_types_in_const)] #![feature(unicode)] #![feature(step_trait)] +#![cfg_attr(test, feature(test))] #![feature(core_intrinsics)] -#![feature(test)] #![allow(stable_features)] // lying about question_mark because 1.14.0 isn't released! #![feature(proc_macro)] -- cgit v1.2.3-54-g00ecf