Either this shouldn't be here, or there should be a `continue` at the end of this block, because with `more = False`, it will try to send the cell to be run, which can't happen because this reset clears the stored input.

I'm inclined to drop this reset, so that the code with the syntax error gets logged in the history file (as already happens with code that has a regular Python syntax error).