From 28d37c952e3e93f7b83f7579e2364b891e0cbadb Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 9 Oct 2009 22:08:10 +0200 Subject: [PATCH] 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. --- NEWS | 1 + src/screen_text.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 */ -- 2.30.2