summaryrefslogtreecommitdiffstatshomepage
path: root/plugins/data/data_command.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/data/data_command.lua')
-rw-r--r--plugins/data/data_command.lua9
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/data/data_command.lua b/plugins/data/data_command.lua
index a868b792c22..6923d80c1e8 100644
--- a/plugins/data/data_command.lua
+++ b/plugins/data/data_command.lua
@@ -1,8 +1,10 @@
local dat = {}
local info, ver
-
local datread = require("data/load_dat")
-datread, ver = datread.open("command.dat", nil)
+do
+ local convert = require("data/button_char")
+ datread, ver = datread.open("command.dat", "# Command List%-Shorthand", convert)
+end
function dat.check(set, softlist)
if softlist or not datread then
@@ -13,8 +15,7 @@ function dat.check(set, softlist)
if not status or not info then
return nil
end
- local convert = require("data/button_char")
- info = "#jf\n" .. convert(info)
+ info = "#jf\n" .. info
return "Command"
end