If you have a line that is longer than the width of the shell and scroll past an opening paren or brace, the line is printed again.
e.g.,
> db.control.count(.....................................................................)
if I ctrl-a to the beginning of the line and then scroll past the (, it becomes:
> db.control.count(.....................................................................)
> db.control.count(.....................................................................)