When creating an if/else block in Perl, the automatic indentation moves the else block one level too far.
When I type:
if (1) {
}
Then with the cursor just after the closing bracket, I press and then begin typing “else”, the closing bracket moves to the right 1 indentation level instead of staying in place. I then:
if (1) {
} else {
}
Instead of getting:
if (1) {
} else {
}
This does not happen in the PHP editor. Is this related to a setting or have I found a bug?