James Moger
2012-03-22 c2833a3fd84e8a7f1361cb3c5c03652dead5b337
Ensure that the line counts start at 1
1 files modified
2 ■■■ changed files
src/com/gitblit/LuceneExecutor.java 2 ●●● patch | view | raw | blame | history
src/com/gitblit/LuceneExecutor.java
@@ -1172,7 +1172,7 @@
                
            if (SearchObjectType.blob  == result.type) {
                // count lines as offset into the content for this fragment
                int line = StringUtils.countLines(content.substring(0, pos));
                int line = Math.max(1, StringUtils.countLines(content.substring(0, pos)));
                
                // create fragment tag with line number and language
                String lang = "";