@rbxts/centurion-ui 2.0.0-rc.7 → 2.0.0-rc.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/analyse/init.luau +4 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rbxts/centurion-ui",
|
|
3
3
|
"description": "Terminal UI for the Centurion command framework",
|
|
4
|
-
"version": "2.0.0-rc.
|
|
4
|
+
"version": "2.0.0-rc.8",
|
|
5
5
|
"author": "paradoxuum",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "src/ts/init.luau",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"access": "public"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@rbxts/centurion": "^2.0.0-rc.
|
|
36
|
+
"@rbxts/centurion": "^2.0.0-rc.6"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {}
|
|
39
39
|
}
|
package/src/analyse/init.luau
CHANGED
|
@@ -183,7 +183,10 @@ local function analyse(
|
|
|
183
183
|
end
|
|
184
184
|
|
|
185
185
|
if arg_type.suggestions then
|
|
186
|
-
|
|
186
|
+
-- only the tokens before the slot being typed, since ones after the
|
|
187
|
+
-- cursor shift as the user types and may be about to change
|
|
188
|
+
local before = table.move(arg_text, 1, slot - 1, 1, {})
|
|
189
|
+
add(arg_type.suggestions(input_token.text, executor, arg, { command = cmd_name, arguments = before }))
|
|
187
190
|
end
|
|
188
191
|
add(arg.suggestions)
|
|
189
192
|
|