Variable: comint-save-input-ring-index

Last input ring index which you copied.
This is to support the command M-x comint-get-next-from-history.