Code

screen_lyrics: reset cursor when the song changes
authorMax Kellermann <max@duempel.org>
Tue, 25 Nov 2008 17:37:56 +0000 (18:37 +0100)
committerMax Kellermann <max@duempel.org>
Tue, 25 Nov 2008 17:37:56 +0000 (18:37 +0100)
When the view is changed and a new song is about to be displayed,
reset the list's state and scroll back to the origin.

src/screen_lyrics.c

index 8c2eedc7dd69e64de949a96a50f9d1f0d17cdcab..2d61bc0924a1c14d7cdc397ee7c1ba29f1d8ded4 100644 (file)
@@ -78,6 +78,8 @@ screen_lyrics_clear(void)
 {
        guint i;
 
+       list_window_reset(lw);
+
        for (i = 0; i < current.lines->len; ++i)
                g_free(g_ptr_array_index(current.lines, i));