[Pydev-cvs] org.python.pydev/src/org/python/pydev/editor/codefolding CodeFoldingSetter.java,1.12,1.1
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2006-01-19 00:08:16
|
Update of /cvsroot/pydev/org.python.pydev/src/org/python/pydev/editor/codefolding In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21360/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.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** CodeFoldingSetter.java 30 Sep 2005 23:14:26 -0000 1.12 --- CodeFoldingSetter.java 19 Jan 2006 00:08:08 -0000 1.13 *************** *** 129,132 **** --- 129,138 ---- 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; if (end == -1) { |