summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndy Lok <andylokandy@hotmail.com>2018-03-01 04:33:29 +0800
committerChristian Duerr <chrisduerr@users.noreply.github.com>2018-02-28 20:33:29 +0000
commit475ebecfc4e0648242e82e256dee1489f3a3fe81 (patch)
treeef07f6b6f12eeb4f125970c804b34fe2c68968db /src
parent8045737d58ccab07814941e08b7bfcd7e2f9bbb2 (diff)
downloadalacritty-475ebecfc4e0648242e82e256dee1489f3a3fe81.tar.gz
alacritty-475ebecfc4e0648242e82e256dee1489f3a3fe81.zip
Update arraydeque dependency
Diffstat (limited to 'src')
-rw-r--r--src/term/mod.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/term/mod.rs b/src/term/mod.rs
index 79101540..b11733f6 100644
--- a/src/term/mod.rs
+++ b/src/term/mod.rs
@@ -103,7 +103,7 @@ pub struct RenderableCellsIter<'a> {
config: &'a Config,
colors: &'a color::List,
selection: Option<RangeInclusive<index::Linear>>,
- cursor_cells: ArrayDeque<[Indexed<Cell>; 4]>,
+ cursor_cells: ArrayDeque<[Indexed<Cell>; 3]>,
}
impl<'a> RenderableCellsIter<'a> {
@@ -147,14 +147,14 @@ impl<'a> RenderableCellsIter<'a> {
line: self.cursor.line,
column: self.cursor.col,
inner: original_cell,
- });
+ }).expect("won't exceed capacity");
// Prints the cursor
self.cursor_cells.push_back(Indexed {
line: self.cursor.line,
column: self.cursor.col,
inner: cursor_cell,
- });
+ }).expect("won't exceed capacity");
// If cursor is over a wide (2 cell size) character,
// print the second cursor cell
@@ -163,7 +163,7 @@ impl<'a> RenderableCellsIter<'a> {
line: self.cursor.line,
column: self.cursor.col + 1,
inner: wide_cell,
- });
+ }).expect("won't exceed capacity");
}
}
@@ -237,7 +237,7 @@ impl<'a> RenderableCellsIter<'a> {
line: self.cursor.line,
column: self.cursor.col,
inner: self.grid[self.cursor],
- });
+ }).expect("won't exceed capacity");
}
fn initialize(mut self, cursor_style: CursorStyle) -> Self {