diff options
author | Max Kellermann <max@duempel.org> | 2008-09-17 12:24:56 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-17 12:24:56 +0200 |
commit | 7384f623975900808c1446cb2979c367565a0656 (patch) | |
tree | f4ecc0c53acd060ad914c561f3aefb70bb63faa7 /src/screen_lyrics.c | |
parent | fd7abf4f81a69014b0e1e967c7965996a11295b0 (diff) | |
download | mpd-7384f623975900808c1446cb2979c367565a0656.tar.gz mpd-7384f623975900808c1446cb2979c367565a0656.tar.xz mpd-7384f623975900808c1446cb2979c367565a0656.zip |
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.
Diffstat (limited to 'src/screen_lyrics.c')
-rw-r--r-- | src/screen_lyrics.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/screen_lyrics.c b/src/screen_lyrics.c index 6853fecd7..cae07a73b 100644 --- a/src/screen_lyrics.c +++ b/src/screen_lyrics.c @@ -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); |