Code

screen_text: start searching at window origin, not bottom
authorMax Kellermann <max@duempel.org>
Fri, 9 Oct 2009 20:08:10 +0000 (22:08 +0200)
committerMax Kellermann <max@duempel.org>
Fri, 9 Oct 2009 20:08:10 +0000 (22:08 +0200)
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
src/screen_text.c

diff --git a/NEWS b/NEWS
index 54bbbfbe2f5dfc64f2734059e097817c854632d8..fc7be11ebd536221206e4e1544ba1fde30bdabb8 100644 (file)
--- 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
index faee9cb76aee4c20461d7db3c31ddc5592f0ed1f..ffa81cdb00990799ec9073ae304d171216855647 100644 (file)
@@ -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 */