mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-16 21:15:57 +03:00
fix(tui): restrict command autocomplete to prompt start (#54857)
This commit is contained in:
committed by
GitHub
Unverified
parent
7bac892c73
commit
1c74b9f020
@@ -803,7 +803,7 @@ export function Autocomplete(props: {
|
||||
if (offset === 0) return
|
||||
|
||||
const slash = slashTriggerIndex(value, offset)
|
||||
if (slash !== undefined) {
|
||||
if (slash === 0) {
|
||||
show("command")
|
||||
setStore("index", slash)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user