This commit is contained in:
Jeevitha Kannan K S 2024-11-08 22:17:55 +05:30 committed by GitHub
commit 7c74aa8a21
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -219,7 +219,8 @@ impl AppState {
let terminal_size = frame.area();
if !self.size_bypass
&& (terminal_size.height < MIN_HEIGHT || terminal_size.width < MIN_WIDTH)
&& !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 = {}",