In MONGOSH-336, we aggregated commands that span across multiple lines into one item in history.
For users who switch to editor mode (.editor) to write multi-line commands we should do the same for 2 reasons:
- It makes it easier (or rather, possible) to re-run commands that were created in editor mode simply by doing "Arrow Up"
- To not pollute shell history with things that are not useful and that are not even runnable, e.g. a closed bracket.