Hi,<br>Referring to <span><strong>bug Auto-close parenthesis - ID: 2957958 ( <a href="https://sourceforge.net/tracker/?func=detail&aid=2957958&group_id=153444&atid=787791">https://sourceforge.net/tracker/?func=detail&aid=2957958&group_id=153444&atid=787791</a> )<br>
<span style="font-weight: normal;">I successfully reproduced the issue and was able to debug it.</span><br style="font-weight: normal;"><span style="font-weight: normal;">The problem is in file <b>editor.c</b> function<b> auto_close_char Line:1397</b></span><br style="font-weight: normal;">
<br style="font-weight: normal;"><span style="font-weight: normal;">In the switch-case block the ifs have a compulsory condition which is end_pos == -1 , as far as I understand end_pos is the current position of the brace ( caret ) returned by SSM(sci, SCI_BRACEMATCH, pos, 0) and when the second opening brace is typed the end_pos becomes >0 so the code never enters the if block. Just by removing the condition the problem is fixed.I was unable to get why that specific condition was added, can anybody please help me here?<br>
<br>Also if there is auto completion of braces when a '(' is typed why there is no auto removal of ')' when a brace is deleted? <br><br>I am sorry if the mail looks pretty unprofessional but I have just begun to learn geany code base.<br>
Can anybody please assign the bug to me? I dont know how to do it in SF I think only the Project admins can do it. <br>Any help is appreciated.<br><br>Thank you<br>shankhs<br></span></strong></span>