]> git.sesse.net Git - vlc/commitdiff
* ncurses: fixed the error that was making the browser so slow.
authorLaurent Aimar <fenrir@videolan.org>
Mon, 31 May 2004 01:48:09 +0000 (01:48 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Mon, 31 May 2004 01:48:09 +0000 (01:48 +0000)
modules/gui/ncurses.c

index c9b4535aac67f47f2eee2c12d9a4228b458dc252..2bfadfb36236dd3ee6ab9f5c78b346e3c16a6bc1 100644 (file)
@@ -447,6 +447,7 @@ static int HandleKey( intf_thread_t *p_intf, int i_key )
     }
     if( p_sys->i_box_type == BOX_BROWSE )
     {
+        vlc_bool_t b_ret = VLC_TRUE;
         /* Browser navigation */
         switch( i_key )
         {
@@ -498,9 +499,11 @@ static int HandleKey( intf_thread_t *p_intf, int i_key )
                 }
                 break;
             default:
-                return 1;
+                b_ret = VLC_FALSE;
                 break;
-
+        }
+        if( b_ret )
+        {
             if( p_sys->i_box_bidx >= p_sys->i_dir_entries ) p_sys->i_box_bidx = p_sys->i_dir_entries - 1;
             if( p_sys->i_box_bidx < 0 ) p_sys->i_box_bidx = 0;
             return 1;