Skip to content

fix(tui): tui split no longer hangs with many 1fr children - #19566

Merged
fdncred merged 1 commit into
nushell:mainfrom
fdncred:tui_split_fill_hang
Nov 16, 2026
Merged

fdncred merged 1 commit into
nushell:mainfrom
fdncred:tui_split_fill_hang

Conversation

@fdncred

@fdncred fdncred commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

Description

A tui split with 30 or more 1fr children can hang, because ratatui's layout solver may not finish with that many Fill constraints. At 40, none of 10 runs did.

Up to 16 Fill children, ratatui solves the split as before, so ordinary splits don't change. Past 16, the solver gets the Fill children as one Fill of their summed weight, and pin_fills in layout.rs then gives each child its share of that space as a Length. With Length and max:N siblings, those are the widths ratatui's own solve gives. With an N% sibling a child can be one cell off. With a min:N sibling, the Fill children and the min:N one can be up to two cells off. Drawing, mouse drags and the arrow-key resize all go through the new SplitDir::split.

User-facing changes (Release notes)

Fixed tui split hanging when it has 30 or more 1fr children.

Additional notes

@fdncred fdncred added notes:fixes Noted in "Bug fixes" section notes:ready Indicates Ready for Release notes labels Nov 16, 2026
@fdncred
fdncred merged commit cee5b7d into nushell:main Nov 16, 2026
15 checks passed
@fdncred
fdncred deleted the tui_split_fill_hang branch November 16, 2026 14:54
@github-actions github-actions Bot added this to the v0.118.0 milestone Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

notes:fixes Noted in "Bug fixes" section notes:ready Indicates Ready for Release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant