From 2193aa81c5a8508ef8aaa1dd82f5dd0609d1860a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 25 Nov 2008 18:37:56 +0100 Subject: [PATCH] screen_lyrics: reset cursor when the song changes 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/screen_lyrics.c b/src/screen_lyrics.c index 8c2eedc..2d61bc0 100644 --- a/src/screen_lyrics.c +++ b/src/screen_lyrics.c @@ -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)); -- 2.30.2