mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 14:55:41 +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:
parent
5eee2360ef
commit
541c32acf4
1 changed files with 3 additions and 3 deletions
|
@ -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
|
* @param offset the document offset at which the buffer starts
|
||||||
*/
|
*/
|
||||||
|
@ -53,8 +53,8 @@ public final class BufferedDocumentScanner implements ICharacterScanner {
|
||||||
|
|
||||||
fBufferOffset= offset;
|
fBufferOffset= offset;
|
||||||
|
|
||||||
if (fBufferOffset + fBuffer.length > fRangeLength)
|
if (fBufferOffset + fBuffer.length > fRangeOffset + fRangeLength)
|
||||||
fBufferLength= fRangeLength - fBufferOffset;
|
fBufferLength= fRangeLength - (fBufferOffset - fRangeOffset);
|
||||||
else
|
else
|
||||||
fBufferLength= fBuffer.length;
|
fBufferLength= fBuffer.length;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue