summaryrefslogtreecommitdiff
path: root/apps/wps-display.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/wps-display.c')
-rw-r--r--apps/wps-display.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/apps/wps-display.c b/apps/wps-display.c
index 71ba4c5433..d3c2613a1e 100644
--- a/apps/wps-display.c
+++ b/apps/wps-display.c
@@ -418,12 +418,7 @@ static char* get_tag(struct mp3entry* id3,
418#endif 418#endif
419 case 'p': /* Playlist Position */ 419 case 'p': /* Playlist Position */
420 *flags |= WPS_REFRESH_STATIC; 420 *flags |= WPS_REFRESH_STATIC;
421 { 421 snprintf(buf, buf_size, "%d", playlist_get_display_index());
422 int index = id3->index - playlist_first_index();
423 if (index < 0)
424 index += playlist_amount();
425 snprintf(buf, buf_size, "%d", index + 1);
426 }
427 return buf; 422 return buf;
428 423
429 case 'n': /* Playlist Name (without path) */ 424 case 'n': /* Playlist Name (without path) */