diff options
author | Christian Duerr <contact@christianduerr.com> | 2020-05-30 20:45:44 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-30 20:45:44 +0000 |
commit | 1dacc99183373bffa3ba287aa3241f3b1da67016 (patch) | |
tree | d5dbefde927b02bff10e29d8596a0bfab65d88f1 /alacritty_terminal/src/term/cell.rs | |
parent | f7fb67f870943f3f760826b748c8463b8e434983 (diff) | |
download | alacritty-1dacc99183373bffa3ba287aa3241f3b1da67016.tar.gz alacritty-1dacc99183373bffa3ba287aa3241f3b1da67016.zip |
Refactor Term/Grid separation
This commit aims to clear up the separation between Term and Grid to
make way for implementing search.
The `cursor` and `cursor_save` have been moved to the grid, since
they're always bound to their specific grid and this makes updating
easier.
Since the selection is independent of the active grid, it has been moved
to the `Term`.
Diffstat (limited to 'alacritty_terminal/src/term/cell.rs')
-rw-r--r-- | alacritty_terminal/src/term/cell.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alacritty_terminal/src/term/cell.rs b/alacritty_terminal/src/term/cell.rs index c23b3599..f95ed0c3 100644 --- a/alacritty_terminal/src/term/cell.rs +++ b/alacritty_terminal/src/term/cell.rs @@ -178,7 +178,7 @@ mod tests { #[test] fn line_length_works() { let template = Cell::default(); - let mut row = Row::new(Column(10), &template); + let mut row = Row::new(Column(10), template); row[Column(5)].c = 'a'; assert_eq!(row.line_length(), Column(6)); @@ -187,7 +187,7 @@ mod tests { #[test] fn line_length_works_with_wrapline() { let template = Cell::default(); - let mut row = Row::new(Column(10), &template); + let mut row = Row::new(Column(10), template); row[Column(9)].flags.insert(super::Flags::WRAPLINE); assert_eq!(row.line_length(), Column(10)); |