Author Topic: Closing parenthesis ")" not added  (Read 1495 times)

Offline Andreas

  • Registered User
  • Jr. Member
  • *
  • Posts: 53
  • Karma: +0/-0
    • View Profile
Closing parenthesis ")" not added
« on: October 20, 2014, 03:51:09 pm »
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

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2181
  • Karma: +37/-3
    • View Profile
    • HippoEDIT
Re: Closing parenthesis ")" not added
« Reply #1 on: October 20, 2014, 10:01:00 pm »
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.

Offline Andreas

  • Registered User
  • Jr. Member
  • *
  • Posts: 53
  • Karma: +0/-0
    • View Profile
Re: Closing parenthesis ")" not added
« Reply #2 on: November 08, 2014, 08:41:45 am »
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
« Last Edit: November 08, 2014, 02:18:25 pm by Andreas »

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2181
  • Karma: +37/-3
    • View Profile
    • HippoEDIT
Re: Closing parenthesis ")" not added
« Reply #3 on: November 08, 2014, 03:14:30 pm »
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.
« Last Edit: November 08, 2014, 03:23:36 pm by alex »

 

Related Topics

  Subject / Started by Replies Last post
5 Replies
2997 Views
Last post February 15, 2009, 04:28:32 pm
by alex
0 Replies
2247 Views
Last post March 07, 2009, 08:51:51 pm
by Stefan
3 Replies
2338 Views
Last post April 19, 2009, 08:42:05 am
by Stefan
6 Replies
5399 Views
Last post November 02, 2009, 11:12:18 pm
by alex
6 Replies
2915 Views
Last post August 24, 2011, 05:08:07 pm
by false007