1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 17:05:26 +02:00

Fixed a problem that was causing backward disply of second line of code see CDT UI PR# 24648

This commit is contained in:
Judy N. Green 2002-10-10 18:42:22 +00:00
parent 5eee2360ef
commit 541c32acf4

View file

@ -45,7 +45,7 @@ public final class BufferedDocumentScanner implements ICharacterScanner {
}
/**
* Fills the buffer with the contens of the document starting at the given offset.
* Fills the buffer with the contents 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 > fRangeLength)
fBufferLength= fRangeLength - fBufferOffset;
if (fBufferOffset + fBuffer.length > fRangeOffset + fRangeLength)
fBufferLength= fRangeLength - (fBufferOffset - fRangeOffset);
else
fBufferLength= fBuffer.length;