Author Topic: B5: Alias surround broken  (Read 728 times)

Tim Kemp

  • Senior Community Member
  • Posts: 536
  • Hero Points: 90
B5: Alias surround broken
« on: September 07, 2016, 05:59:31 pm »
I may not be calling it by the right name. It's the feature that allows you to move the closing brace after expanding an alias (for example: if). It used to recognize that the surround couldn't be expanded because you'd be illegally crossing braces. It doesn't do that anymore.


SlickEdit Pro 2016 (v21.0.0.6 32-bit)
Build Date: September 04, 2016
Emulation: CUA
OS: Windows 7 x64
File type: C/C++

Lee

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1299
  • Hero Points: 130
Re: B5: Alias surround broken
« Reply #1 on: September 07, 2016, 06:19:03 pm »
Check the option under language setting (Tools > Options > Languages > C/C++ > Auto-Complete) under the Syntax expansion section for Use Dynamic Surround, make sure it is still checked.  There are conditions where Dynamic Surround is not available depending where the cursor is, if there is no more code to surround underneath the statement near the close brace for a function for example. 

Tim Kemp

  • Senior Community Member
  • Posts: 536
  • Hero Points: 90
Re: B5: Alias surround broken
« Reply #2 on: September 07, 2016, 06:36:01 pm »
I didn't do a very good job of describing the problem. Dynamic surround works fine except that it doesn't recognize some of the cases you are describing. I'm used to dynamic surround knowing where it shouldn't pass. In the past, in the situation I've included a picture of, you wouldn't be able to move the brace down.


Lee

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1299
  • Hero Points: 130
Re: B5: Alias surround broken
« Reply #3 on: September 07, 2016, 06:54:17 pm »
Ahhhhh, thanks for the clarification.  Now I am able to reproduce that problem, will have to investigate to see what changed there.