auto-indent: fix indent after leaving top-level scope.

Such as a finishing a function body.