Index: beep/playlist.c =================================================================== RCS file: /cvsroot/beepmp/bmp/beep/playlist.c,v retrieving revision 1.92 diff -u -r1.92 playlist.c --- beep/playlist.c 18 Sep 2004 23:15:46 -0000 1.92 +++ beep/playlist.c 23 Oct 2004 16:26:55 -0000 @@ -721,7 +721,8 @@ bottom = MAX(0, playlist_get_length_nolock() - playlistwin_list->pl_num_visible); - row = CLAMP(pos - playlistwin_list->pl_num_visible / 2, 0, bottom); + row = (pos < playlistwin_list->pl_num_visible) ? 0 : + CLAMP(pos - playlistwin_list->pl_num_visible / 2, 0, bottom); PLAYLIST_UNLOCK(); playlistwin_set_toprow(row); }