Your edits are preserved. Review the current file before replacing your buffer.
Input is sent only while attached. Shift+Escape returns focus to the terminal toolbar.