REPL completion deletes the line sometimes, fixes #293