From: Max Kellermann Date: Wed, 17 Sep 2008 10:24:56 +0000 (+0200) Subject: lyrics: removed lyrics_text_rows, use current.lines->len instead X-Git-Tag: v0.12_alpha1~270 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7384f623975900808c1446cb2979c367565a0656;p=ncmpc.git 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. --- 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);