diff options
author | Max Kellermann <max@duempel.org> | 2008-11-18 21:51:57 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-11-18 21:51:57 +0100 |
commit | 299a27c8dee0e7eeab3448ed7cdfe1ac7c97ebaf (patch) | |
tree | 45768e3972318fb475c65a5866c5bbedd09da8a3 /src/screen_lyrics.c | |
parent | ebb9e5b1924e6bc5baaae9ced82b54be586f6b74 (diff) | |
download | mpd-299a27c8dee0e7eeab3448ed7cdfe1ac7c97ebaf.tar.gz mpd-299a27c8dee0e7eeab3448ed7cdfe1ac7c97ebaf.tar.xz mpd-299a27c8dee0e7eeab3448ed7cdfe1ac7c97ebaf.zip |
command: added CMD_LOCATE to locate song in database
Pressing 'l' switches to the file browser (screen_file) and locates
the previously selected song in the server's database.
Diffstat (limited to 'src/screen_lyrics.c')
-rw-r--r-- | src/screen_lyrics.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/screen_lyrics.c b/src/screen_lyrics.c index ab9dfdeda..30a89a163 100644 --- a/src/screen_lyrics.c +++ b/src/screen_lyrics.c @@ -329,6 +329,15 @@ lyrics_cmd(mpdclient_t *c, command_t cmd) lyrics_repaint(); } return 1; + + case CMD_LOCATE: + if (current.song != NULL) { + screen_file_goto_song(c, current.song); + return true; + } + + return false; + default: break; } |