Fix comint bouncing around in shell-mode.