fix "End" key on not visible end items
authorGuillaume Cottenceau <gcottenc@gmail.com>
Fri, 23 Apr 2010 20:53:34 +0000 (22:53 +0200)
committerGuillaume Cottenceau <gcottenc@gmail.com>
Fri, 23 Apr 2010 20:53:34 +0000 (22:53 +0200)
bin/booh-classifier

index 43abe08..a2bc8d6 100644 (file)
@@ -1089,7 +1089,7 @@ def thumbnail_keypressed(entry, event)
         elsif event.keyval == Gdk::Keyval::GDK_End
             index = $allentries.size - 1
             while $allentries[index] && $allentries[index].button && !visible($allentries[index])
-                index += 1
+                index -= 1
             end
             if $allentries[index] && $allentries[index].button
                 $allentries[index].button.grab_focus