instert custom commands

This commit is contained in:
Sebastian Herrlinger 2025-10-28 22:48:51 +01:00
parent dd6648bc49
commit ed25d0c569

View file

@ -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)
}