From 2ace5da2c97d68307586d30c5d51bb19632c1e6c Mon Sep 17 00:00:00 2001 From: Sokomine Date: Mon, 14 Jun 2021 23:18:31 +0200 Subject: [PATCH] bugfix in sort_keys for actions --- functions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.lua b/functions.lua index 731934e..98eeaf0 100644 --- a/functions.lua +++ b/functions.lua @@ -1901,7 +1901,7 @@ yl_speak_up.sort_keys = function(t) table.sort(keys) for i,k in ipairs(keys) do -- avoid cutting the single a from a_1 (action 1) - if(k and string.sub(k, 1, 1) == "a" and string.sub(k, 1, 2) ~= "aa") then + if(k and string.sub(k, 1, 1) == "a" and string.sub(k, 2, 2) ~= "_") then -- remove the leading blank keys[i] = string.sub(k, 2) end