Fix #6488, #6500 (long inputs in REPL)