Skip to content

Commit ba6f201

Browse files
Lubos KoscoLubos Kosco
authored andcommitted
improve the if for #681
1 parent c84ffea commit ba6f201

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/org/opensolaris/opengrok/search/context/Context.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,7 @@ public boolean getContext(Reader in, Writer out, String urlPrefix,
252252
if (matchState == LineMatcher.MATCHED) {
253253
if (!isDefSearch) {
254254
tokens.printContext();
255-
}
256-
if (isDefSearch && tokens.tags.containsKey(tokens.markedLine)) {
255+
} else if (tokens.tags.containsKey(tokens.markedLine)) {
257256
tokens.printContext();
258257
}
259258
matchedLines++;

0 commit comments

Comments
 (0)