Autocompletion Double End

The script auto-completion adds two ends when only one is needed after this specific line of code:

when I push enter on the keyboard, this happens:

I have a feeling that this may have to do with the ‘–if’ comment.

That does indeed seem to be the case. Thanks for the find, I’ll add it to our bug list.