Fixing up/down arrows in comint mode.