summaryrefslogtreecommitdiffstats
path: root/tests/ref.rs
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2017-10-12 19:07:49 -0700
committerJoe Wilm <joe@jwilm.com>2018-06-02 09:24:38 -0700
commitbbe276e3a80571dd0d72a9b32fb7bed38c3be868 (patch)
tree122b3412c00aeab21ab14043a961f95f45c78715 /tests/ref.rs
parentfd7c1bf6639afc2a141a215f6f64fa299c5a160e (diff)
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/ref.rs')
-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 {