TUI enters endless loop if the tty is too small
tui::layout_queue_columns
will try keep removing elements from the length lists, as long as the UI does not fit. If the minimum size constraint, is larger than the tty, this function enters an endless loop.
This should be fixed by adding a if [...].is_none()
check here; to check if all the vectors are empty, and in that (base) case, returning the current cols
.
Edited by Amber Sprenkels