Update of /cvsroot/pydev/org.python.pydev/src/org/python/pydev/editor/autoedit
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28865/src/org/python/pydev/editor/autoedit
Modified Files:
PyAutoIndentStrategy.java
Log Message:
Fixed problem when smart indent was off.
Index: PyAutoIndentStrategy.java
===================================================================
RCS file: /cvsroot/pydev/org.python.pydev/src/org/python/pydev/editor/autoedit/PyAutoIndentStrategy.java,v
retrieving revision 1.69
retrieving revision 1.70
diff -C2 -d -r1.69 -r1.70
*** PyAutoIndentStrategy.java 15 Jun 2008 16:45:26 -0000 1.69
--- PyAutoIndentStrategy.java 3 Jul 2008 01:04:04 -0000 1.70
***************
*** 564,568 ****
}else{
PySelection selection = new PySelection(document, command.offset);
! if(selection.getCursorLineContents().trim().endsWith(":")){
command.text += prefs.getIndentationString();
}
--- 564,568 ----
}else{
PySelection selection = new PySelection(document, command.offset);
! if(selection.getLineContentsToCursor().trim().endsWith(":")){
command.text += prefs.getIndentationString();
}
|