Improve handling scrollback when gui_tab_server==FALSE

Fixes #925.