Skip to main content

split_widths

Function split_widths 

Source
pub fn split_widths(cols: u16) -> (u16, u16)
Expand description

Left/right content widths for a split at cols columns (1-col divider). Right gets the extra column on odd widths. Returns (cols, 0) when there’s no room to split — caller renders the focused pane full-width.