Scroll to end of buffer after restoring in some modes