diff options
author | Joe Wilm <joe@jwilm.com> | 2016-11-28 14:13:11 -0800 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2016-12-11 20:23:41 -0800 |
commit | 30bee80a6902eb09c51bed9c9f54c7617c4d53db (patch) | |
tree | 187853fdf17d3382595be8a416e604c6f2bea0f0 /tests/ref.rs | |
parent | 941818d88ebc1f0d90ef9b1ef7d1313174afb36b (diff) | |
download | alacritty-30bee80a6902eb09c51bed9c9f54c7617c4d53db.tar.gz alacritty-30bee80a6902eb09c51bed9c9f54c7617c4d53db.zip |
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<Item=IndexedCell>` 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.
Diffstat (limited to 'tests/ref.rs')
-rw-r--r-- | tests/ref.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/ref.rs b/tests/ref.rs index 349b565e..a92da05f 100644 --- a/tests/ref.rs +++ b/tests/ref.rs @@ -78,6 +78,7 @@ mod reference { ll, vim_simple_edit, tmux_htop, - tmux_git_log + tmux_git_log, + vim_large_window_scroll } } |