mirror of
https://github.com/discourse/discourse.git
synced 2025-03-29 09:25:37 +08:00

Normally we look at where the cursor is, but when the composer is closed we don't have a cursor and just append at the end. This fix adds a new line to make sure quotes will always work when inserted when the composer is closed.