summaryrefslogtreecommitdiff
path: root/script/core/completion
diff options
context:
space:
mode:
Diffstat (limited to 'script/core/completion')
-rw-r--r--script/core/completion/postfix.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/script/core/completion/postfix.lua b/script/core/completion/postfix.lua
index 2ac24933..984ad03c 100644
--- a/script/core/completion/postfix.lua
+++ b/script/core/completion/postfix.lua
@@ -240,7 +240,7 @@ local function checkPostFix(state, word, wordPosition, position, symbol, results
if not source then
return
end
- for _, action in ipairs(actions) do
+ for i, action in ipairs(actions) do
if matchKey(word, action.key) then
action.data[1](state, source, function (newText)
results[#results+1] = {
@@ -261,6 +261,7 @@ local function checkPostFix(state, word, wordPosition, position, symbol, results
newText = '',
},
},
+ sortText = ('postfix-%04d'):format(i),
}
end)
end