mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-08-13 00:45:11 +09:00
Correct partial table types
`_display_data` is a cache keyed by force name, not a single record. The auto complete accumulator starts empty, so its fields are optional. Game commands have no usage beyond their own help text. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -207,7 +207,7 @@ end
|
||||
function ExpUtil.auto_complete(options, input, use_key, rtn_key, use_pattern)
|
||||
input = input:lower()
|
||||
local plain = use_pattern ~= true
|
||||
local found = {} --- @type { length: number, index: number, start: boolean, value: any }
|
||||
local found = {} --- @type { length: number?, index: number?, start: boolean?, value: any }
|
||||
for k, v in pairs(options) do
|
||||
local str = use_key and k or v
|
||||
local index = str:lower():find(input, nil, plain)
|
||||
|
||||
Reference in New Issue
Block a user