Home Download Buy Blog Forum Support

[BUG] "select_lines" on multiple lines

[BUG] "select_lines" on multiple lines

Postby nicech on Fri Oct 07, 2011 1:01 pm

Hello,

I don't know if the following behavior is a bug or intentional but when I do use "select_lines" behavior on multiple lines with different indentations, here is what is happening :

Code: Select all
        $product = ProductTable::getInstance()->findOneById($productId);

        $productIds = array();
        $productIds[] = $productId;
        foreach ($product->getAggregats() as $aggregate) {
            $productIds[] = $aggregate->getId();   
        }

For instance, there is no space on the only empty line. If I select_lines and put comments, I do obtain :

Code: Select all

        //$product = ProductTable::getInstance()->findOneById($productId);
//
//        //$productIds = array();
//        //$productIds[] = $productId;
//        //foreach ($product->getAggregats() as $aggregate) {
//        //    $productIds[] = $aggregate->getId();   
        //}

where I would rather expect :
Code: Select all

        //$product = ProductTable::getInstance()->findOneById($productId);
//
        //$productIds = array();
        //$productIds[] = $productId;
        //foreach ($product->getAggregats() as $aggregate) {
        //    $productIds[] = $aggregate->getId();   
        //}


Please let me know if thats something to be changed in the future or a normal behavior. Thank you and thanks for that wonderful SublimeText 2 any way :)
nicech
 
Posts: 7
Joined: Tue Oct 04, 2011 11:34 am

Return to Technical Support

Who is online

Users browsing this forum: No registered users and 28 guests