Closing parenthesis ")" not added

Started by Andreas, October 20, 2014, 04:51:09 PM

Previous topic - Next topic

Andreas

Hi Alex,

copy the following line of code into a C++ source file in HippoEdit:

    int a = 1 + ((2 +3);

Now place the cursor onto the closing parenthesis ")".

Then press ")" on the keyboard.

As a result, the closing parenthesis ")" will NOT be added to the code.

Best regards,
Andreas

alex

Hi Andreas,

you need to put you closing parenthesis not before but after another closing parenthesis ;)
Yes. I have reproduced - probably cause by optimization of auto closing brace feature. Will correct in next build.

BTW: I have published 1.51.38 just now. Most of the problems reported by you shall be fixed. Please check.

BR, Alex.
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]

Andreas

#2
Hi Alex,

there is still a problem here. To reproduce it, make sure that the Auto-Brackets option is disabled. Then copy the following line of code into a C++ source file in HippoEdit:

    int a = b * (c + d * func);

Now place the cursor onto the closing parenthesis ")" and then quickly type "(" and ")".

As a result, the closing parenthesis ")" you have just entered will NOT be added to the code.

The problem will not occur when you slowly type "(" and ")".

Best regards,
Andreas

alex

#3
Hi Andreas,

confirmed. Will fix it in next update for 1.60. If Auto-Brackets feature is disabled, editor at all shal not take care about manipulation of the parenthesis and shall leave everything as typed.
But also if Auto-Brackets is ON, in your example editor behaves incorrectly: it leave additional closing parenthesis if you type open + close fast. One auto added + one yours. That shall be also fixed.

BR, Alex.
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]