[Pydev-cvs] org.python.pydev/src/org/python/pydev/editor/codefolding CodeFoldingSetter.java,1.13,1.1
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2006-03-07 19:48:44
|
Update of /cvsroot/pydev/org.python.pydev/src/org/python/pydev/editor/codefolding In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24365/src/org/python/pydev/editor/codefolding Modified Files: CodeFoldingSetter.java Log Message: Index: CodeFoldingSetter.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/src/org/python/pydev/editor/codefolding/CodeFoldingSetter.java,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** CodeFoldingSetter.java 19 Jan 2006 00:08:08 -0000 1.13 --- CodeFoldingSetter.java 7 Mar 2006 19:48:36 -0000 1.14 *************** *** 130,137 **** int start = element.node.beginLine-1; - if(element.node instanceof FunctionDef){ - FunctionDef f = (FunctionDef) element.node; - start = f.name.beginLine -1; - } int end = element.endLine; --- 130,133 ---- *************** *** 149,153 **** end++; }else{ ! addFoldingMark(element, start, end, model, collapsed); element = nextElement; --- 145,149 ---- end++; }else{ ! //will add the import node addFoldingMark(element, start, end, model, collapsed); element = nextElement; *************** *** 161,164 **** --- 157,164 ---- } + if(element.node instanceof FunctionDef){ + FunctionDef f = (FunctionDef) element.node; + start = f.name.beginLine -1; + } addFoldingMark(element, start, end, model, collapsed); |