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 b26273e518c4082b6a31f2f58d4c1185e1fd576d..8d6d465a227489ebd3d8196d0787b4c871544292 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: