diff --git a/src/screen_song.c b/src/screen_song.c
index c6d7d801e47299c3413079bc60577898d704f25f..1463ec6cd59a8289256c42ff558adc18968c8fd0 100644 (file)
--- a/src/screen_song.c
+++ b/src/screen_song.c
}
}
-static void
-screen_song_paint(void);
-
-/**
- * Repaint and update the screen.
- */
-static void
-screen_song_repaint(void)
-{
- screen_song_paint();
- wrefresh(lw->w);
-}
-
static const char *
screen_song_list_callback(unsigned idx, gcc_unused void *data)
{
mpdclient_handle_error(c);
list_window_set_length(lw, current.lines->len);
- screen_song_repaint();
+ screen_song_paint();
}
static bool
screen_song_cmd(struct mpdclient *c, command_t cmd)
{
if (list_window_scroll_cmd(lw, cmd)) {
- screen_song_repaint();
+ screen_song_paint();
return true;
}
if (screen_find(lw, cmd, screen_song_list_callback, NULL)) {
/* center the row */
list_window_center(lw, lw->selected);
- screen_song_repaint();
+ screen_song_paint();
return true;
}