バグ #1546 » 0001-fix-off-by-one-url-range.patch
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
|