Only use ED for clear screen if at the bottom, same as earlier fix to clear end of screen.
Only use ED for clear screen if at the bottom, same as earlier fix to
clear end of screen.

klaxalk/tmux,klaxalk/tmux,klaxalk/tmux,klaxalk/tmux,klaxalk/tmux