プロジェクト

全般

プロフィール

バグ #1546 » 0002-fix-url-range-after-emoji.patch

Izumi Tsutsui, 2021-11-25 03:01

差分を表示:

plugin/gtk3/widget/miraclepainter.rb
index = main_pos_to_index(x, y)
if index
clicked_note = score.find{|note|
index -= note.description.size
if UserConfig[:miraclepainter_expand_custom_emoji] && note.respond_to?(:inline_photo)
# 1 -> 置換された絵文字の文字長
index -= 1
else
index -= note.description.size
end
index < 0
}
Plugin.call(:open, clicked_note) if clickable?(clicked_note)
......
index = main_pos_to_index(x, y)
if index # the cursor is placed on text
pointed_note = score.find{|note|
index -= note.description.size
if UserConfig[:miraclepainter_expand_custom_emoji] && note.respond_to?(:inline_photo)
# 1 -> 置換された絵文字の文字長
index -= 1
else
index -= note.description.size
end
index < 0
}
if clickable?(pointed_note)
(4-4/4)