diff options
Diffstat (limited to 'alacritty_terminal/src/grid/storage.rs')
-rw-r--r-- | alacritty_terminal/src/grid/storage.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/alacritty_terminal/src/grid/storage.rs b/alacritty_terminal/src/grid/storage.rs index 9b8b0b2a..e04d01cd 100644 --- a/alacritty_terminal/src/grid/storage.rs +++ b/alacritty_terminal/src/grid/storage.rs @@ -310,8 +310,21 @@ impl<T> IndexMut<Line> for Storage<T> { mod test { use crate::grid::row::Row; use crate::grid::storage::Storage; + use crate::grid::GridCell; use crate::index::{Column, Line}; + impl GridCell for char { + fn is_empty(&self) -> bool { + *self == ' ' || *self == '\t' + } + + fn is_wrap(&self) -> bool { + false + } + + fn set_wrap(&mut self, _wrap: bool) {} + } + /// Grow the buffer one line at the end of the buffer /// /// Before: |