Fixed problem with statusline layout

The text buffer was not being flushed after each bit of text for the
statusline was printed, resulting in all being crammed to the right of
the statusline.