From c4d2725e14ca9488b1b086024bf827c66945ae7b Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Wed, 10 Jul 2019 21:17:20 +0000 Subject: Fix row occ not set during new and reset Since ref tests were only stored whenever winit requested the window close, they would not get stored properly when the terminal was closed through Alacritty using `exit`, Ctrl+D or similar. This moves the ref test code to the and of the main entry point, which will always be executed regardless of how the terminal was shutdown. Fixes #2613. --- alacritty_terminal/src/grid/tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'alacritty_terminal/src/grid/tests.rs') diff --git a/alacritty_terminal/src/grid/tests.rs b/alacritty_terminal/src/grid/tests.rs index ce094b96..a352e747 100644 --- a/alacritty_terminal/src/grid/tests.rs +++ b/alacritty_terminal/src/grid/tests.rs @@ -21,7 +21,7 @@ use crate::term::cell::{Cell, Flags}; impl GridCell for usize { fn is_empty(&self) -> bool { - false + *self == 0 } fn is_wrap(&self) -> bool { -- cgit v1.2.3-54-g00ecf