def block_join
import cswap-bend-cli@0.1.0.0/tui/view.bend as Viewimport Base
import cswap-bend-cli@0.1.0.0/tui/fmt.bend as F
143def block_join(+b: List<&2, List<&2, F.Seg>>, +rest: List<&2, List<&2, F.Seg>>, +prev: Bool, +first: Bool) -> List<&2, List<&2, F.Seg>>:
144 lines_cat(gap_if(Bool.not(first) && (prev || is_multi(b))), lines_cat(b, rest))