Code

screen_lyrics: support CMD_VIEW
authorMax Kellermann <max@duempel.org>
Tue, 18 Nov 2008 23:06:22 +0000 (00:06 +0100)
committerMax Kellermann <max@duempel.org>
Tue, 18 Nov 2008 23:06:22 +0000 (00:06 +0100)
Jump to the song viewer screen.

src/screen_lyrics.c

index 9cffd57770e1d0d19feede84b6c8f7778e60c59b..0d525f5cc53e485e9db58455ca2f8317086397d8 100644 (file)
@@ -330,6 +330,16 @@ lyrics_cmd(mpdclient_t *c, command_t cmd)
                }
                return true;
 
+#ifdef ENABLE_SONG_SCREEN
+       case CMD_VIEW:
+               if (current.song != NULL) {
+                       screen_song_switch(c, current.song);
+                       return true;
+               }
+
+               break;
+#endif
+
        case CMD_LOCATE:
                if (current.song != NULL) {
                        screen_file_goto_song(c, current.song);