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:
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
|
||||
*/
|
||||
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue