]> source.dussan.org Git - sonarqube.git/commitdiff
Fix the issue with duplications on the last line
authorStas Vilchik <vilchiks@gmail.com>
Tue, 29 Jul 2014 12:49:01 +0000 (14:49 +0200)
committerStas Vilchik <vilchiks@gmail.com>
Tue, 29 Jul 2014 12:49:01 +0000 (14:49 +0200)
sonar-server/src/main/coffee/component-viewer/source.coffee

index 7d47af82001b755598af0e7d1578247253bd8874..a69ace3aa3fec43c57c537f48e781692173b8fb6 100644 (file)
@@ -202,7 +202,7 @@ define [
       line = $(e.currentTarget).closest('[data-line-number]').data 'line-number'
       blocks = @model.get('duplications')[index - 1].blocks
       blocks = _.filter blocks, (b) ->
-        (b._ref != '1') || (b._ref == '1' && b.from > line) || (b._ref == '1' && b.from + b.size <= line)
+        (b._ref != '1') || (b._ref == '1' && b.from > line) || (b._ref == '1' && b.from + b.size < line)
       popup = new DuplicationPopupView
         triggerEl: $(e.currentTarget)
         main: @options.main