Author Topic: Bug In "Expand/Clapse block"  (Read 4858 times)

skywolf

  • Community Member
  • Posts: 22
  • Hero Points: 0
Bug In "Expand/Clapse block"
« on: June 30, 2007, 05:26:59 AM »
It is OK for if/for/while block, but not good for function/switch block. if collapse a function or witch block, it eats the end "}" and following blank line, and cause problems when trying to add new line after the collapsed block.

Dennis

  • Senior Community Member
  • Posts: 3955
  • Hero Points: 515
Re: Bug In "Expand/Clapse block"
« Reply #1 on: July 02, 2007, 04:24:47 PM »
What language?  Example please?

skywolf

  • Community Member
  • Posts: 22
  • Hero Points: 0
Re: Bug In "Expand/Clapse block"
« Reply #2 on: July 05, 2007, 08:15:32 PM »
c language

Dennis

  • Senior Community Member
  • Posts: 3955
  • Hero Points: 515
Re: Bug In "Expand/Clapse block"
« Reply #3 on: July 05, 2007, 08:54:21 PM »
This is too minor to stick into the hot fix, so I'll just tell you how to fix that problem.
Go to line 2206 of slickedit/macros/cutil.e, and add a case for the "switch" keyword.