Fix REPL completion display for multiline inputs