summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikayla Maki <mikayla.c.maki@gmail.com>2022-07-28 23:31:31 -0700
committerGitHub <noreply@github.com>2022-07-29 06:31:31 +0000
commit1df32309fe69d4e8113813a3e9049a7039650f44 (patch)
treea19830114c3fea88054b4197f6d2e54df9a36a94
parentf4304d5a308e5341eb0a944b77c80d4821a13dbb (diff)
downloadalacritty-1df32309fe69d4e8113813a3e9049a7039650f44.tar.gz
alacritty-1df32309fe69d4e8113813a3e9049a7039650f44.zip
Make grid mutably accessible to libraries
Co-authored-by: Mikayla Maki <mikayla.c.maki@icloud.com>
-rw-r--r--alacritty_terminal/src/term/mod.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/alacritty_terminal/src/term/mod.rs b/alacritty_terminal/src/term/mod.rs
index 5baa3df4..8317e701 100644
--- a/alacritty_terminal/src/term/mod.rs
+++ b/alacritty_terminal/src/term/mod.rs
@@ -580,15 +580,11 @@ impl<T> Term<T> {
}
/// Access to the raw grid data structure.
- ///
- /// This is a bit of a hack; when the window is closed, the event processor
- /// serializes the grid state to a file.
pub fn grid(&self) -> &Grid<Cell> {
&self.grid
}
- /// Mutable access for swapping out the grid during tests.
- #[cfg(test)]
+ /// Mutable access to the raw grid data structure.
pub fn grid_mut(&mut self) -> &mut Grid<Cell> {
&mut self.grid
}