[Geany-devel] Auto-close parenthesis - ID: 2957958 Need Info

shan chak shankholove at xxxxx
Mon Nov 1 18:16:51 UTC 2010

Referring to *bug Auto-close parenthesis - ID: 2957958 (
I successfully reproduced the issue and was able to debug it.
The problem is in file editor.c function auto_close_char Line:1397

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?

Also if there is auto completion of braces when a '(' is typed why there is
no auto removal of ')' when a brace is deleted?

I am sorry if the mail looks pretty unprofessional but I have just begun to
learn geany code base.
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.
Any help is appreciated.

Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.geany.org/pipermail/devel/attachments/20101101/a41fbd44/attachment.html>

More information about the Devel mailing list