mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
instert custom commands
This commit is contained in:
parent
dd6648bc49
commit
ed25d0c569
1 changed files with 2 additions and 1 deletions
|
|
@ -290,7 +290,8 @@ export function Autocomplete(props: {
|
|||
}
|
||||
|
||||
function hide() {
|
||||
if (store.visible === "/" && !props.value.endsWith(" ")) {
|
||||
const text = props.input().plainText
|
||||
if (store.visible === "/" && !text.endsWith(" ")) {
|
||||
const cursor = props.input().logicalCursor
|
||||
props.input().deleteRange(0, 0, cursor.row, cursor.col)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue