<p></p>
<p>Its good that you actually made changes to the manual, although I don't think it actually explains the operation very well, and it doesn't explain your second {} commit.  That means I may misunderstand what your proposal does, but it sounds quite similar to the way Eclipse works.</p>
<p>What I find is that Eclipse autoclose might make sense when writing new code, it is a pain in the [colloquial expression elided] when editing existing code.  Even Eclipse with all its language smarts breaks roughly 50% of the time when editing existing C++ code, adding extra closing brackets in the wrong places or omitting them when it shouldn't.</p>
<p>With the best will in the world, Geany does not have the smarts of Eclipse, so I'm rather pessimistic about autoclose.  Could you perhaps explain explicitly the logic after your changes, the OP and commit messages do not really clearly explain the intended logic?</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/pull/2943#issuecomment-944165902">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJZUMT6PR2ACUFWL45TUG7373ANCNFSM5GBHXS3Q">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/AAIOWJ5UE2LIYZEHMZQBGVDUG7373A5CNFSM5GBHXS32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHBDNIDQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/pull/2943#issuecomment-944165902",
"url": "https://github.com/geany/geany/pull/2943#issuecomment-944165902",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>