Code

lyrics: removed lyrics_text_rows, use current.lines->len instead
authorMax Kellermann <max@duempel.org>
Wed, 17 Sep 2008 10:24:56 +0000 (12:24 +0200)
committerMax Kellermann <max@duempel.org>
Wed, 17 Sep 2008 10:24:56 +0000 (12:24 +0200)
lyrics_text_rows wasn't set anyway, I somehow removed the code in a
patch some time ago.

src/screen_lyrics.c

index 6853fecd72bb2a9dc494d2ca3fb435d1d51910e1..cae07a73be14149fed98e75278a26c01f6b224eb 100644 (file)
@@ -39,7 +39,6 @@
 #include <stdio.h>
 
 static list_window_t *lw = NULL;
-static int lyrics_text_rows = -1;
 
 static struct {
        const struct mpd_song *song;
@@ -324,7 +323,7 @@ lyrics_cmd(screen_t *screen, mpdclient_t *c, command_t cmd)
 
        lw->selected = lw->start+lw->rows;
        if (screen_find(screen,
-                       lw,  lyrics_text_rows,
+                       lw, current.lines->len,
                        cmd, list_callback, NULL)) {
                /* center the row */
                list_window_center(lw, current.lines->len, lw->selected);