When running multiline inputs using ctrl+enter, the command is wrapped in a begin-end block. Fixes #2.