aboutsummaryrefslogtreecommitdiff
path: root/src/grid.rs
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2016-06-06 17:44:06 -0700
committerJoe Wilm <joe@jwilm.com>2016-06-06 17:44:06 -0700
commit7834bd177fb30953170889d58c114f98cff2de84 (patch)
treea0514acc1fc7e92da83e0558efd78ff45ac2449b /src/grid.rs
parent1a7eda7b0523c7c9d754258a1531feccd0cd1cc5 (diff)
downloadalacritty-7834bd177fb30953170889d58c114f98cff2de84.tar.gz
alacritty-7834bd177fb30953170889d58c114f98cff2de84.zip
Fix bug where there were extra grid rows
Apparently VecDeque::with_capacity is more of a suggestion.
Diffstat (limited to 'src/grid.rs')
-rw-r--r--src/grid.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/grid.rs b/src/grid.rs
index 3b3acf9b..e904a5b0 100644
--- a/src/grid.rs
+++ b/src/grid.rs
@@ -60,7 +60,7 @@ pub struct Grid {
impl Grid {
pub fn new(rows: usize, cols: usize) -> Grid {
let mut raw = VecDeque::with_capacity(rows);
- for _ in 0..raw.capacity() {
+ for _ in 0..rows {
raw.push_back(Row::new(cols));
}