From 1df32309fe69d4e8113813a3e9049a7039650f44 Mon Sep 17 00:00:00 2001 From: Mikayla Maki Date: Thu, 28 Jul 2022 23:31:31 -0700 Subject: Make grid mutably accessible to libraries Co-authored-by: Mikayla Maki --- alacritty_terminal/src/term/mod.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'alacritty_terminal/src/term/mod.rs') 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 Term { } /// 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 { &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 { &mut self.grid } -- cgit v1.2.3-54-g00ecf