aboutsummaryrefslogtreecommitdiff
path: root/src/grid/mod.rs
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2018-05-19 12:06:21 -0700
committerJoe Wilm <joe@jwilm.com>2018-05-19 12:10:22 -0700
commitd49d45f4b1715de673580d74673a67655a5215cc (patch)
treee90b8d28184c8dc4b00a1522017258cdd9ed2516 /src/grid/mod.rs
parent9c187901782d4cdcba0be375334b5348456ebeea (diff)
downloadalacritty-d49d45f4b1715de673580d74673a67655a5215cc.tar.gz
alacritty-d49d45f4b1715de673580d74673a67655a5215cc.zip
Fix OOB index in grid::DisplayIter
When resizing prior to this patch, hidden rows in Storage were not having columns added along with everything else. This feels like a bit of tech debt, but the patch is simple enough that it won't be much extra to back out later when the underlying cause is addressed (see comments in code).
Diffstat (limited to 'src/grid/mod.rs')
-rw-r--r--src/grid/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/grid/mod.rs b/src/grid/mod.rs
index 0eea4201..9b36fcdf 100644
--- a/src/grid/mod.rs
+++ b/src/grid/mod.rs
@@ -244,7 +244,7 @@ impl<T: Copy + Clone> Grid<T> {
}
fn grow_cols(&mut self, cols: index::Column, template: &T) {
- for row in self.raw.iter_mut() {
+ for row in self.raw.iter_mut_raw() {
row.grow(cols, template);
}