Prefer horizontal window splitting by default

Add function to check if there is only one window and, if so, force
horizontal (side-by-side) split.