[Pydev-cvs] org.python.pydev.core/src/org/python/pydev/core/docutils PySelection.java,1.12,1.13 Word
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2006-05-15 13:47:49
|
Update of /cvsroot/pydev/org.python.pydev.core/src/org/python/pydev/core/docutils In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27569/src/org/python/pydev/core/docutils Modified Files: PySelection.java WordUtils.java Log Message: Index: PySelection.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev.core/src/org/python/pydev/core/docutils/PySelection.java,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** PySelection.java 13 Apr 2006 15:40:42 -0000 1.12 --- PySelection.java 15 May 2006 13:47:46 -0000 1.13 *************** *** 1192,1195 **** --- 1192,1204 ---- + public static boolean isInSameLine(int offset, IRegion lineInformationOfOffset) { + if(offset >= lineInformationOfOffset.getOffset() && + offset <= (lineInformationOfOffset.getOffset() + lineInformationOfOffset.getLength())){ + return true; + } + return false; + } + + |