From e701160f8dc707604df2f4079b78c1996d9c6497 Mon Sep 17 00:00:00 2001
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
Date: Thu, 25 Nov 2021 02:39:00 +0900
Subject: [PATCH 1/2] =?UTF-8?q?=E3=83=AA=E3=83=B3=E3=82=AF=E6=96=87?=
 =?UTF-8?q?=E5=AD=97=E5=88=97=E3=81=AE=E7=AF=84=E5=9B=B2=E5=88=A4=E5=AE=9A?=
 =?UTF-8?q?=E3=81=8C1=E6=96=87=E5=AD=97=E3=82=BA=E3=83=AC=E3=81=A6?=
 =?UTF-8?q?=E3=81=84=E3=82=8B=20refs=20#1546?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 plugin/gtk3/widget/miraclepainter.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugin/gtk3/widget/miraclepainter.rb b/plugin/gtk3/widget/miraclepainter.rb
index 27ca8f00..3206a39d 100644
--- a/plugin/gtk3/widget/miraclepainter.rb
+++ b/plugin/gtk3/widget/miraclepainter.rb
@@ -234,7 +234,7 @@ class Plugin::Gtk3::MiraclePainter < Gtk::ListBoxRow
         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
@@ -675,7 +675,7 @@ private
     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
-- 
2.33.0

