vlc | branch: master | Pierre Ynard <linkfa...@yahoo.fr> | Wed Nov 23 22:27:45 2016 +0100| [75809d1f2780ecf47df1689f09ffa7b2c1142c3a] | committer: Pierre Ynard
cli: bring back long lost current playlist item marker After 10 years of absence :( > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=75809d1f2780ecf47df1689f09ffa7b2c1142c3a --- 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 e02530d..90f23af 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)..")" _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits