From 475ebecfc4e0648242e82e256dee1489f3a3fe81 Mon Sep 17 00:00:00 2001 From: Andy Lok Date: Thu, 1 Mar 2018 04:33:29 +0800 Subject: Update arraydeque dependency --- src/term/mod.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') 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>, - cursor_cells: ArrayDeque<[Indexed; 4]>, + cursor_cells: ArrayDeque<[Indexed; 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 { -- cgit