diff options
author | Christoph Heinrich <christoph.heinrich@student.tugraz.at> | 2023-07-13 22:10:22 +0200 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-07-14 13:06:01 +0000 |
commit | cf0373e15bbe3da8af7b3d1bbe1ae5caee9672cf (patch) | |
tree | 48d8f382df9e00f860fffff173e3e7b342624167 /player | |
parent | fc43faa02620cdd911a9baf2247d4306a0dc5e7a (diff) | |
download | mpv-cf0373e15bbe3da8af7b3d1bbe1ae5caee9672cf.tar.bz2 mpv-cf0373e15bbe3da8af7b3d1bbe1ae5caee9672cf.tar.xz |
console: sort the output from the `help` command
Closes #11927
Diffstat (limited to 'player')
-rw-r--r-- | player/lua/console.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/player/lua/console.lua b/player/lua/console.lua index 616dd53761..0e20066903 100644 --- a/player/lua/console.lua +++ b/player/lua/console.lua @@ -326,6 +326,9 @@ end function help_command(param) local cmdlist = mp.get_property_native('command-list') + table.sort(cmdlist, function(c1, c2) + return c1.name < c2.name + end) local error_style = '{\\1c&H7a77f2&}' local output = '' if param == '' then |