From: Max Kellermann Date: Fri, 9 Oct 2009 20:08:10 +0000 (+0200) Subject: screen_text: start searching at window origin, not bottom X-Git-Tag: release-0.16~153 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=28d37c952e3e93f7b83f7579e2364b891e0cbadb;p=ncmpc.git screen_text: start searching at window origin, not bottom Don't add "text->lw->rows" to the window origin. This won't find text displayed on the screen. This patch affects the lyrics screen. --- diff --git a/NEWS b/NEWS index 54bbbfb..fc7be11 100644 --- a/NEWS +++ b/NEWS @@ -10,6 +10,7 @@ ncmpc 0.16 - not yet released * disable the status bar clock by default * list_window: fix narrow cursor drawing * screen_play: repaint after the "select-playing" command +* screen_text: start searching at window origin, not bottom ncmpc 0.15 - 2009-09-24 diff --git a/src/screen_text.c b/src/screen_text.c index faee9cb..ffa81cd 100644 --- a/src/screen_text.c +++ b/src/screen_text.c @@ -103,7 +103,7 @@ screen_text_cmd(struct screen_text *text, return true; } - text->lw->selected = text->lw->start + text->lw->rows; + text->lw->selected = text->lw->start; if (screen_find(text->lw, text->lines->len, cmd, screen_text_list_callback, text)) { /* center the row */