SlickEdit Community

Archived Beta Discussions => SlickEdit 201x Beta Discussions => SlickEdit 2016 v21 Beta Discussion => Topic started by: Tim Kemp on September 07, 2016, 05:59:31 PM

Title: B5: Alias surround broken
Post by: Tim Kemp 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++
Title: Re: B5: Alias surround broken
Post by: Lee 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. 
Title: Re: B5: Alias surround broken
Post by: Tim Kemp 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.

Title: Re: B5: Alias surround broken
Post by: Lee 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.