1
0
Fork 0
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:
Christian Duerr 2020-05-30 20:45:44 +00:00 committed by GitHub
parent f7fb67f870
commit 1dacc99183
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 932 additions and 820 deletions

View file

@ -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 {