Code

screen_help: use help_paint()
authorMax Kellermann <max@duempel.org>
Sun, 11 Oct 2009 17:20:55 +0000 (19:20 +0200)
committerMax Kellermann <max@duempel.org>
Sun, 11 Oct 2009 17:20:55 +0000 (19:20 +0200)
Don't call list_window_paint() manually.

src/screen_help.c

index 1d83bf77c3ba106644b2447f19b36a37afcca086..54b54f22b66dcba780dc763fa2d1a979186b5393 100644 (file)
@@ -255,7 +255,7 @@ static bool
 help_cmd(G_GNUC_UNUSED struct mpdclient *c, command_t cmd)
 {
        if (list_window_scroll_cmd(lw, cmd)) {
-               list_window_paint(lw, list_callback, NULL);
+               help_paint();
                wrefresh(lw->w);
                return true;
        }
@@ -264,7 +264,7 @@ help_cmd(G_GNUC_UNUSED struct mpdclient *c, command_t cmd)
        if (screen_find(lw,  cmd, list_callback, NULL)) {
                /* center the row */
                list_window_center(lw, lw->selected);
-               list_window_paint(lw, list_callback, NULL);
+               help_paint();
                wrefresh(lw->w);
                return true;
        }