From 75809d1f2780ecf47df1689f09ffa7b2c1142c3a Mon Sep 17 00:00:00 2001 From: Pierre Ynard Date: Wed, 23 Nov 2016 22:27:45 +0100 Subject: [PATCH] cli: bring back long lost current playlist item marker After 10 years of absence :( --- share/lua/intf/cli.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/share/lua/intf/cli.lua b/share/lua/intf/cli.lua index e02530dd27..90f23af6c1 100644 --- a/share/lua/intf/cli.lua +++ b/share/lua/intf/cli.lua @@ -215,7 +215,8 @@ function playlist(name,client,arg) function playlist0(item,prefix) local prefix = prefix or "" if not item.flags.disabled then - local str = "| "..prefix..tostring(item.id).." - ".. + local marker = ( item.id == vlc.playlist.current() ) and "*" or " " + local str = "|"..prefix..marker..tostring(item.id).." - ".. ( item.name or item.path ) if item.duration > 0 then str = str.." ("..common.durationtostring(item.duration)..")"