aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2017-10-12 19:07:49 -0700
committerJoe Wilm <joe@jwilm.com>2018-03-07 09:45:25 -0800
commit7298b58e74ac16d2a7a31ef7da5877f9fb54ef38 (patch)
tree34ffb8d69eca0ef6181fd3d9d5098ff13439f824 /tests
parentd0a58c54c566e5ce1565b6ad1078439547d1cf5c (diff)
downloadalacritty-7298b58e74ac16d2a7a31ef7da5877f9fb54ef38.tar.gz
alacritty-7298b58e74ac16d2a7a31ef7da5877f9fb54ef38.zip
Back Grid with VecDeque
VecDeque offers improved performance beyond a plain Vec for common scrolling situations (full screen scroll). Additionally, VecDeque is necessary for performant scrollback since recycling old rows for a Vec would be expensive (push/pop front would shift entire vec).
Diffstat (limited to 'tests')
-rw-r--r--tests/ref.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ref.rs b/tests/ref.rs
index b8587955..2a093704 100644
--- a/tests/ref.rs
+++ b/tests/ref.rs
@@ -84,7 +84,7 @@ fn ref_test(dir: &Path) {
}
if grid != *terminal.grid() {
- for (i, row) in terminal.grid().iter_rows().enumerate() {
+ for (i, row) in terminal.grid().lines().enumerate() {
for (j, cell) in row.iter().enumerate() {
let original_cell = &grid[Line(i)][Column(j)];
if *original_cell != *cell {