fix cstyle behaviour when inserting braces and doing a newline. Previous behaviour would not add a closing brace when no other opening brace was present
Merge pull request #1698 from LivelyKernel/ace-ajax-master

cstyle behaviour fix for entering braces