Author Topic: Comment Block stack  (Read 96 times)

jporkkahtc

  • Senior Community Member
  • Posts: 2428
  • Hero Points: 202
  • Text
Comment Block stack
« on: November 18, 2021, 06:28:13 pm »
In Tools > Options > Languages > Application Languages > ANSI-C > Comments
Set the Top or Bottom middle box to 2 or more characters and then CommentBlock (box) fails.

 Slick-C STACK TRACE ******************************
 Created on 11/18/2021 at 10:25:09 (64 ms)
 SlickEdit Pro Version 26.0.0.6 Copyright 1988-2021 SlickEdit Inc.
 Edit module and type "st -f <offset>" to get the
 run-time error position

 error code=-3015
 Invalid argument

box.ex 2499 box()   p_window_id: 27   p_object: OI_EDITOR   p_name:

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 3467
  • Hero Points: 466
Re: Comment Block stack
« Reply #1 on: November 22, 2021, 09:05:30 pm »
Reproduced. 

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 3467
  • Hero Points: 466
Re: Comment Block stack
« Reply #2 on: November 22, 2021, 11:27:56 pm »
Good catch.  Will be fixed for the next hot fix.

I also modified "Comment Block" to do something sensible with multiple character middle box strings.  Now you can set them to something like "#$!@", and Comment Block will swear across the entire top of the comment.