From 1ff69c78460d386d7ca7bb7755c9697be5dd3928 Mon Sep 17 00:00:00 2001 From: Jeevitha Kannan K S Date: Wed, 6 Nov 2024 20:23:12 +0530 Subject: [PATCH] fix: getting locked out when running script --- tui/src/state.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tui/src/state.rs b/tui/src/state.rs index 3670c779..35a5b296 100644 --- a/tui/src/state.rs +++ b/tui/src/state.rs @@ -186,7 +186,9 @@ impl AppState { pub fn draw(&mut self, frame: &mut Frame) { let terminal_size = frame.area(); - if terminal_size.width < MIN_WIDTH || terminal_size.height < MIN_HEIGHT { + if !matches!(self.focus, Focus::FloatingWindow(_)) && terminal_size.width < MIN_WIDTH + || terminal_size.height < MIN_HEIGHT + { let warning = Paragraph::new(format!( "Terminal size too small:\nWidth = {} Height = {}\n\nMinimum size:\nWidth = {} Height = {}", terminal_size.width,