summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: afcf83b)
raw | patch | inline | side by side (parent: afcf83b)
author | Max Kellermann <max@duempel.org> | |
Fri, 9 Oct 2009 20:08:10 +0000 (22:08 +0200) | ||
committer | Max 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.
displayed on the screen. This patch affects the lyrics screen.
NEWS | patch | blob | history | |
src/screen_text.c | patch | blob | history |
index 54bbbfbe2f5dfc64f2734059e097817c854632d8..fc7be11ebd536221206e4e1544ba1fde30bdabb8 100644 (file)
--- a/NEWS
+++ b/NEWS
* 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 faee9cb76aee4c20461d7db3c31ddc5592f0ed1f..ffa81cdb00990799ec9073ae304d171216855647 100644 (file)
--- a/src/screen_text.c
+++ b/src/screen_text.c
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 */