プロジェクト

全般

プロフィール

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

Izumi Tsutsui, 2021-11-25 03:01

差分を表示:

plugin/gtk3/widget/miraclepainter.rb
if index
clicked_note = score.find{|note|
index -= note.description.size
index <= 0
index < 0
}
Plugin.call(:open, clicked_note) if clickable?(clicked_note)
end
......
if index # the cursor is placed on text
pointed_note = score.find{|note|
index -= note.description.size
index <= 0
index < 0
}
if clickable?(pointed_note)
# the cursor is placed on link
(3-3/4)