summaryrefslogtreecommitdiff
path: root/tests/ref.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ref.rs')
-rw-r--r--tests/ref.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/ref.rs b/tests/ref.rs
index 2a093704..6836a9f5 100644
--- a/tests/ref.rs
+++ b/tests/ref.rs
@@ -6,6 +6,7 @@ use std::io::{self, Read};
use std::path::Path;
use alacritty::Grid;
+use alacritty::grid::IndexRegion;
use alacritty::Term;
use alacritty::ansi;
use alacritty::index::{Line, Column};
@@ -84,7 +85,7 @@ fn ref_test(dir: &Path) {
}
if grid != *terminal.grid() {
- for (i, row) in terminal.grid().lines().enumerate() {
+ for (i, row) in terminal.grid().region(..).into_iter().enumerate() {
for (j, cell) in row.iter().enumerate() {
let original_cell = &grid[Line(i)][Column(j)];
if *original_cell != *cell {