diff options
author | Max Kellermann <max@duempel.org> | 2008-11-25 18:37:56 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-11-25 18:37:56 +0100 |
commit | 2193aa81c5a8508ef8aaa1dd82f5dd0609d1860a (patch) | |
tree | 74ce1cd4d7f6b8f2f361cd776173f3272ea60465 /src/screen_lyrics.c | |
parent | 4098af3dfa212d6074bdc8f7815a123d5f3b12b5 (diff) | |
download | mpd-2193aa81c5a8508ef8aaa1dd82f5dd0609d1860a.tar.gz mpd-2193aa81c5a8508ef8aaa1dd82f5dd0609d1860a.tar.xz mpd-2193aa81c5a8508ef8aaa1dd82f5dd0609d1860a.zip |
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.
Diffstat (limited to '')
-rw-r--r-- | src/screen_lyrics.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/screen_lyrics.c b/src/screen_lyrics.c index 8c2eedc7d..2d61bc092 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)); |