Author Topic: a problem with folding while using  (Read 5140 times)

Offline lupeng1228

  • Single posting newcomer
  • *
  • Posts: 2
a problem with folding while using
« on: October 24, 2010, 01:08:07 pm »
MY english is pool.I don't know if this is a bug of editer.And I haven't try the newest version because i don't konw how to install it.
I'm using codeblocks10.05 on windows.The programmer could fold things between { and }.When I delete the { with folded codes after it,
trow number which between { and } disappear.

Offline lupeng1228

  • Single posting newcomer
  • *
  • Posts: 2
Re: a problem with folding while using
« Reply #1 on: October 24, 2010, 01:10:29 pm »
And when I reload the file,only { disapper.I'm a freah man learning using programming.
« Last Edit: October 24, 2010, 01:12:33 pm by lupeng1228 »

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5913
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: a problem with folding while using
« Reply #2 on: October 24, 2010, 03:57:20 pm »
can not understand your problem....
you need to describe it more clearly.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5913
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: a problem with folding while using
« Reply #3 on: October 25, 2010, 01:26:13 am »
seems jens has fix the problem.
see the svn log: rev 6754
Quote
* fix for a folding-bug, where the folded block stays hidden, if the folding-header (brace or whatever) was deleted (see here: http://forums.codeblocks.org/index.php/topic,13551.msg91270.html#msg91270 , and others).

-------------------------------
M : /trunk/src/sdk/cbeditor.cpp 
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: a problem with folding while using
« Reply #4 on: October 25, 2010, 07:21:53 am »
seems jens has fix the problem.
see the svn log: rev 6754
Quote
* fix for a folding-bug, where the folded block stays hidden, if the folding-header (brace or whatever) was deleted (see here: http://forums.codeblocks.org/index.php/topic,13551.msg91270.html#msg91270 , and others).

-------------------------------
M : /trunk/src/sdk/cbeditor.cpp 
Yes should be fixed, and a reply to the post was written, but I accidently only hitted the preview-, but not the post-button  :oops: .
Too late, too much trouble the last weeks.