OSDN Git Service

Previous commit is buggy. Fix it. (#16447)
authorAiwota Programmer <aiwotaprog@tetteke.tk>
Wed, 29 Apr 2009 14:15:28 +0000 (23:15 +0900)
committerAiwota Programmer <aiwotaprog@tetteke.tk>
Wed, 29 Apr 2009 14:15:28 +0000 (23:15 +0900)
src/FukuiNoNamari/thread_popup.py

index fbb71d2..479166d 100644 (file)
@@ -68,10 +68,10 @@ class ThreadPopup(gobject.GObject):
             if match:
                 left = int(match.group("left"))
                 right = int(match.group("right"))
-                if left >= right:
+                if left <= right:
                     resnum = range(left, right+1)
                 else:
-                    resnum = range(right, left-1, -1)
+                    resnum = range(left, right-1, -1)
                 self._show_hint(widget, resnum, orig_uri)
                 return
             match = re.match("\d+", resnum)