プロジェクト

全般

プロフィール

バグ #1546 » 0001-fix-off-by-one-url-range.patch

Izumi Tsutsui, 2021-11-25 03:01

差分を表示:

plugin/gtk3/widget/miraclepainter.rb
234 234
        if index
235 235
          clicked_note = score.find{|note|
236 236
            index -= note.description.size
237
            index <= 0
237
            index < 0
238 238
          }
239 239
          Plugin.call(:open, clicked_note) if clickable?(clicked_note)
240 240
        end
......
675 675
    if index # the cursor is placed on text
676 676
      pointed_note = score.find{|note|
677 677
        index -= note.description.size
678
        index <= 0
678
        index < 0
679 679
      }
680 680
      if clickable?(pointed_note)
681 681
        # the cursor is placed on link
(3-3/4)