tenseleyflow/fackr / bca1436

Browse files

fix: always render tab bar even with single tab

Authored by mfwolffe <wolffemf@dukes.jmu.edu>
SHA
bca14367e23268841db90c968c755fdc22f9d223
Parents
55a7075
Tree
09ec6e6

1 changed file

StatusFile+-
M src/render/screen.rs 1 6
src/render/screen.rsmodified
@@ -165,13 +165,8 @@ impl Screen {
165165
     }
166166
 
167167
     /// Render the tab bar
168
-    /// Returns the height of the tab bar (1 if rendered, 0 if only one tab)
168
+    /// Returns the height of the tab bar (always 1)
169169
     pub fn render_tab_bar(&mut self, tabs: &[TabInfo], left_offset: u16) -> Result<u16> {
170
-        // Only show tab bar if there's more than one tab
171
-        if tabs.len() <= 1 {
172
-            return Ok(0);
173
-        }
174
-
175170
         execute!(self.stdout, MoveTo(left_offset, 0))?;
176171
 
177172
         // Fill the tab bar background