mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Rolled back to 1.1 for use with Eclipse 2.0.1 Aug 29.
The fix in 1.2 can only be used whne we move forward to support Eclipse builds newer than 20 September 2002.
This commit is contained in:
parent
1da99f2c05
commit
703ab2853a
1 changed files with 3 additions and 3 deletions
|
@ -45,7 +45,7 @@ public final class BufferedDocumentScanner implements ICharacterScanner {
|
|||
}
|
||||
|
||||
/**
|
||||
* Fills the buffer with the contents of the document starting at the given offset.
|
||||
* Fills the buffer with the contens of the document starting at the given offset.
|
||||
*
|
||||
* @param offset the document offset at which the buffer starts
|
||||
*/
|
||||
|
@ -53,8 +53,8 @@ public final class BufferedDocumentScanner implements ICharacterScanner {
|
|||
|
||||
fBufferOffset= offset;
|
||||
|
||||
if (fBufferOffset + fBuffer.length > fRangeOffset + fRangeLength)
|
||||
fBufferLength= fRangeLength - (fBufferOffset - fRangeOffset);
|
||||
if (fBufferOffset + fBuffer.length > fRangeLength)
|
||||
fBufferLength= fRangeLength - fBufferOffset;
|
||||
else
|
||||
fBufferLength= fBuffer.length;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue