diff options
| author | GitHub Action <[email protected]> | 2026-01-14 00:04:24 +0000 |
|---|---|---|
| committer | Frank <[email protected]> | 2026-01-13 19:51:02 -0500 |
| commit | 2aed4d263b4873c3085acdcbcf871a8dadaf392e (patch) | |
| tree | ff59578d0b0df26047ea705c3c3e9384f785f19a | |
| parent | e2ac588c8428a39b56a0f42ec723bc8143b7c0bd (diff) | |
| download | opencode-2aed4d263b4873c3085acdcbcf871a8dadaf392e.tar.gz opencode-2aed4d263b4873c3085acdcbcf871a8dadaf392e.zip | |
chore: generate
| -rw-r--r-- | packages/opencode/src/cli/cmd/tui/component/prompt/autocomplete.tsx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/packages/opencode/src/cli/cmd/tui/component/prompt/autocomplete.tsx b/packages/opencode/src/cli/cmd/tui/component/prompt/autocomplete.tsx index 5b5358ef0..601eb82bc 100644 --- a/packages/opencode/src/cli/cmd/tui/component/prompt/autocomplete.tsx +++ b/packages/opencode/src/cli/cmd/tui/component/prompt/autocomplete.tsx @@ -160,9 +160,7 @@ export function Autocomplete(props: { props.setPrompt((draft) => { if (part.type === "file") { - const existingIndex = draft.parts.findIndex( - (p) => p.type === "file" && "url" in p && p.url === part.url, - ) + const existingIndex = draft.parts.findIndex((p) => p.type === "file" && "url" in p && p.url === part.url) if (existingIndex !== -1) { const existing = draft.parts[existingIndex] if ( |
