when typing this:
I get the following
So far so good.
But then when i type in my condition (say "true) and hit <shift-command-enter> I get the following
The cursor is in the correct place but the extra brackets are unexpected. I would expect that the cursor is simply moved into the braces, not that another set is added.
Interestingly enough, if i do a while statement with the steps above, it behaves as I would expect.