c auto-indentation should not add matching } in all cases
Submitted by Christian Hergert
If the following line is not empty, don't insert it. we could get more complicated with things like this, but in general, that will do.
Some other heuristics could be if the following line is indented more or if it isn't at the same target indentation.