SlickEdit Community

SlickEdit Product Discussion => SlickEdit® => Topic started by: lambertia on June 08, 2007, 02:26:00 AM

Title: Bug: 12.0.1.0 Unsurround does not change comments.
Post by: lambertia on June 08, 2007, 02:26:00 AM
Hi.

"Unsurround the block" does not move the ident level of the comments (at least for me). This ocurrs with comment wrapping on or off. For example, starting with:

Code: [Select]
    {
        //
        //  Single values take precedence.
        //
   
        resultp = SingleSearch(value);
        if (!resultp)
        {
            //
            //  Next try a range search.
            //
   
            resultp = RangeSearch(value);
            if (!resultp)
            {
                //
                //  Use the default contents.
                //
   
                resultp = &vDefaultContents;
            }
        }
   
        return (*resultp);
    }

If I unsurround this I end up with:

Code: [Select]
        //
        //  Single values take precedence.
        //

    resultp = SingleSearch(value);
    if (!resultp)
    {
            //
            //  Next try a range search.
            //

        resultp = RangeSearch(value);
        if (!resultp)
        {
                //
                //  Use the default contents.
                //

            resultp = &vDefaultContents;
        }
    }

Cheers,
--
Greg.

Title: Re: Bug: 12.0.1.0 Unsurround does not change comments.
Post by: hs2 on October 19, 2007, 02:30:52 PM
Seems that this still applies to v12.0.3 :(
@SlickTeam: Any chance to get a hotfix for that ?
HS2
Title: Re: Bug: 12.0.1.0 Unsurround does not change comments.
Post by: ScottW, VP of Dev on October 19, 2007, 06:26:29 PM
I have filed a change request for this and assigned it to our next release. I can't say when this will be fixed or whether a hot fix is possible.
Title: Re: Bug: 12.0.1.0 Unsurround does not change comments.
Post by: hs2 on October 20, 2007, 12:29:06 AM
Thanks Scott, it's ok to know that it will be fixed sooner or later.
Although unsurround is very cool I'm not using it every day (in contrast to surround-with).
HS2