fix a navigation bug (stupid typo of mine)
authorLuke Plant <L.Plant.98@cantab.net>
Tue, 14 Oct 2003 12:57:27 +0000 (12:57 +0000)
committerLuke Plant <L.Plant.98@cantab.net>
Tue, 14 Oct 2003 12:57:27 +0000 (12:57 +0000)
src/mimeview.c

index b26273e..8d6d465 100644 (file)
@@ -1245,17 +1245,19 @@ static gint icon_key_pressed(GtkWidget *button, GdkEventKey *event,
        case GDK_n:
        case GDK_N:
                BREAK_ON_MODIFIER_KEY();
-               if (icon_list_select_by_number(mimeview, num + 1))
+               if (icon_list_select_by_number(mimeview, num + 1)) {
                        KEY_PRESS_EVENT_STOP();
                        return TRUE;
+               }
                break;
                
        case GDK_p:
        case GDK_P:
                BREAK_ON_MODIFIER_KEY();
-               if (icon_list_select_by_number(mimeview, num - 1))
+               if (icon_list_select_by_number(mimeview, num - 1)) {
                        KEY_PRESS_EVENT_STOP();
                        return TRUE;
+               }
                break;
 
        case GDK_y: