diff --git a/src/screen_help.c b/src/screen_help.c
index adf9a03102fe805c194b2cc1e418f399b444aa57..e462ddc907897d86dfdd109e72f121015ba0c41e 100644 (file)
--- a/src/screen_help.c
+++ b/src/screen_help.c
#include <stdlib.h>
#include <string.h>
#include <glib.h>
-#include <ncurses.h>
typedef struct {
signed char highlight;
{ 0, CMD_LIST_FIND_NEXT, NULL },
{ 0, CMD_LIST_RFIND_NEXT, NULL },
{ 0, CMD_TOGGLE_FIND_WRAP, NULL },
+ { 0, CMD_LOCATE, NULL },
{ 0, CMD_NONE, NULL },
{ 0, CMD_QUIT, NULL },
}
static void
-help_paint(mpd_unused mpdclient_t *c)
+help_paint(void)
{
list_window_paint(lw, list_callback, NULL);
}
static int
-help_cmd(screen_t *screen, mpd_unused mpdclient_t *c, command_t cmd)
+help_cmd(mpd_unused mpdclient_t *c, command_t cmd)
{
if (list_window_scroll_cmd(lw, help_text_rows, cmd)) {
list_window_paint(lw, list_callback, NULL);
}
lw->selected = lw->start+lw->rows;
- if (screen_find(screen,
- lw, help_text_rows,
+ if (screen_find(lw, help_text_rows,
cmd, list_callback, NULL)) {
/* center the row */
list_window_center(lw, help_text_rows, lw->selected);