aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen_play.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/screen_play.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/screen_play.c b/src/screen_play.c
index 4c21a1769..1e0dcaa28 100644
--- a/src/screen_play.c
+++ b/src/screen_play.c
@@ -554,6 +554,14 @@ play_cmd(mpdclient_t *c, command_t cmd)
return handle_mouse_event(c);
#endif
+ case CMD_LOCATE:
+ if (lw->selected < playlist_length(&c->playlist)) {
+ screen_file_goto_song(c, playlist_get(&c->playlist, lw->selected));
+ return true;
+ }
+
+ break;
+
#ifdef ENABLE_LYRICS_SCREEN
case CMD_SCREEN_LYRICS:
if (lw->selected < playlist_length(&c->playlist)) {