Skip to content

Commit 3ff0eb3

Browse files
committed
Revert "fix: disable virtual extmarks for file/agent mentions (anomalyco#4731)"
This reverts commit 673dbee.
1 parent 4d2b265 commit 3ff0eb3

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/opencode/src/cli/cmd/tui/component/prompt/autocomplete.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ export function Autocomplete(props: {
8181
const extmarkId = input.extmarks.create({
8282
start: extmarkStart,
8383
end: extmarkEnd,
84+
virtual: true,
8485
styleId,
8586
typeId: props.promptPartTypeId(),
8687
})

packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ export function Prompt(props: PromptProps) {
310310
const extmarkId = input.extmarks.create({
311311
start,
312312
end,
313+
virtual: true,
313314
styleId,
314315
typeId: promptPartTypeId,
315316
})

0 commit comments

Comments
 (0)