Debug session thread and socket leak fixed:
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / phpeditor / php / PHPAutoIndentStrategy.java
index 042fe11..5647b5b 100644 (file)
@@ -221,10 +221,17 @@ public class PHPAutoIndentStrategy extends DefaultAutoIndentStrategy {
                        } else {
                                int start= document.getLineOffset(line);
                                int whiteend= findEndOfWhiteSpace(document, start, command.offset);
+                               int offset = -1;
+//                             if (command.offset > 0 && command.offset < docLength && document.getChar(command.offset-1) == '{') {
+//                               offset = command.offset;
+//                             }
                                buf.append(document.get(start, whiteend - start));
                                if (getBracketCount(document, start, command.offset, true) > 0) {
                                        buf.append('\t');
                                }
+//                             if (offset >= 0) {
+//                               buf.append('}');
+//                             }
                        }
                        command.text= buf.toString();