Skip to content

Commit ae41c83

Browse files
idodeclareVladimir Kotal
authored andcommitted
Fix to expand tabs as necessary for matchOffset
1 parent ff84b9a commit ae41c83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/web/PageConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1800,7 +1800,7 @@ public boolean evaluateMatchOffset() {
18001800
LineBreaker breaker = new LineBreaker();
18011801
StreamSource streamSource = StreamSource.fromFile(resourceFile);
18021802
try {
1803-
breaker.reset(streamSource);
1803+
breaker.reset(streamSource, in -> ExpandTabsReader.wrap(in, getProject()));
18041804
int matchLine = breaker.findLineIndex(matchOffset);
18051805
if (matchLine >= 0) {
18061806
// Convert to 1-based offset to accord with OpenGrok line number.

0 commit comments

Comments
 (0)