REPL: fix incomplete input detection in return_callback

Hopefully addresses part of #6420
REPL: ^K should only kill up to a newline

Addresses part of #6420