@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 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.7",
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.4"
36
+ "@rbxts/centurion": "^2.0.0-rc.6"
37
37
  },
38
38
  "scripts": {}
39
39
  }
@@ -183,7 +183,10 @@ local function analyse(
183
183
  end
184
184
 
185
185
  if arg_type.suggestions then
186
- add(arg_type.suggestions(input_token.text, executor, arg))
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