Author Topic: Problem with Dynamic Surround  (Read 2959 times)

Wanderer

  • Senior Community Member
  • Posts: 557
  • Hero Points: 23
Problem with Dynamic Surround
« on: April 05, 2007, 01:22:41 PM »
Hello,

If I have code like this:
Code: [Select]
if (something)
    peel();
else if (somethingElse)
    scrape();
else
    paint();

When I insert a '{' after "(something)"
the matching '}' is inserted, and the dynamic surround feature kicks in.
If I drag the closing brace to include "peel();", it gets an extra indentation:
Code: [Select]
if (something) {
        peel();
}
else if (somethingElse)
    scrape();
else
    paint();