Author Topic: Bug In "Expand/Clapse block"  (Read 2777 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

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2354
  • Hero Points: 315
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

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2354
  • Hero Points: 315
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.