From: Max Kellermann Date: Tue, 25 Nov 2008 17:37:56 +0000 (+0100) Subject: screen_lyrics: reset cursor when the song changes X-Git-Tag: v0.12_beta1~12 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2193aa81c5a8508ef8aaa1dd82f5dd0609d1860a;p=ncmpc.git 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. --- 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));