mirror of
https://github.com/alacritty/alacritty.git
synced 2025-11-06 22:44:18 -05:00
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`.
This commit is contained in:
parent
f7fb67f870
commit
1dacc99183
18 changed files with 932 additions and 820 deletions
|
|
@ -107,7 +107,7 @@ fn ref_test(dir: &Path) {
|
|||
|
||||
// Truncate invisible lines from the grid.
|
||||
let mut term_grid = terminal.grid().clone();
|
||||
term_grid.initialize_all(&Cell::default());
|
||||
term_grid.initialize_all(Cell::default());
|
||||
term_grid.truncate();
|
||||
|
||||
if grid != term_grid {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue