From: Max Kellermann Date: Thu, 2 Oct 2008 13:20:18 +0000 (+0200) Subject: screen_artist: call artist_lw_cmd() at the end of artist_cmd() X-Git-Tag: v0.12_alpha1~120 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=bedf936a8d54bab5e51d5fadb3b42440ec864f61;p=ncmpc.git screen_artist: call artist_lw_cmd() at the end of artist_cmd() By calling artist_lw_cmd() after the big switch, we can override behaviour, and we can modify the command. --- diff --git a/src/screen_artist.c b/src/screen_artist.c index b15b89d..c9c6f9b 100644 --- a/src/screen_artist.c +++ b/src/screen_artist.c @@ -450,11 +450,6 @@ artist_cmd(screen_t *screen, mpdclient_t *c, command_t cmd) char *selected; int ret; - if (artist_lw_cmd(cmd)) { - artist_repaint(); - return 1; - } - switch(cmd) { case CMD_PLAY: switch (mode) { @@ -624,6 +619,11 @@ artist_cmd(screen_t *screen, mpdclient_t *c, command_t cmd) break; } + if (artist_lw_cmd(cmd)) { + artist_repaint(); + return 1; + } + return 0; }