Only trim \r and \n from transient readline input.
Only trim \r and \n from transient readline input.

The current `rtrim` call would remove trailing whitespace in strings or heredocs split between two lines when the code buffer is left open due to incomplete statements in input.
bobthecow/psysh,bobthecow/psysh