Author Topic: Bug: 12.0.1.0 Unsurround does not change comments.  (Read 6100 times)

lambertia

  • Senior Community Member
  • Posts: 382
  • Hero Points: 14
  • I have nothing sufficiently witty to say.
Bug: 12.0.1.0 Unsurround does not change comments.
« 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.


hs2

  • Senior Community Member
  • Posts: 2763
  • Hero Points: 292
Re: Bug: 12.0.1.0 Unsurround does not change comments.
« Reply #1 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

ScottW, VP of Dev

  • Senior Community Member
  • Posts: 1471
  • Hero Points: 64
Re: Bug: 12.0.1.0 Unsurround does not change comments.
« Reply #2 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.

hs2

  • Senior Community Member
  • Posts: 2763
  • Hero Points: 292
Re: Bug: 12.0.1.0 Unsurround does not change comments.
« Reply #3 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