comint-eol-on-send

comint-eol-on-send is a variable defined in `comint.el'.
Its value is
t


Documentation:
Non-nil means go to the end of the line before sending input.
See `comint-send-input'.

You can customize this variable.