>>> It couldn't >>> possibly harm unless the root window is too small to get split and we >>> want to put only one window there; so we should handle that special case. >> >> I'll try this, thanks. > > I'd first try a vertical, then a horizontal split. Give up if both > fail. Maybe something like this: