From 7384f623975900808c1446cb2979c367565a0656 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 17 Sep 2008 12:24:56 +0200 Subject: [PATCH] lyrics: removed lyrics_text_rows, use current.lines->len instead lyrics_text_rows wasn't set anyway, I somehow removed the code in a patch some time ago. --- src/screen_lyrics.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/screen_lyrics.c b/src/screen_lyrics.c index 6853fec..cae07a7 100644 --- a/src/screen_lyrics.c +++ b/src/screen_lyrics.c @@ -39,7 +39,6 @@ #include 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); -- 2.30.2