revert: Reverts requested

This commit is contained in:
silentoplayz 2025-08-04 08:42:48 -04:00
parent 7a80e60785
commit 55d3c07d85
2 changed files with 1 additions and 9 deletions

View file

@ -283,7 +283,7 @@
if (chatInput) {
if ($settings?.richTextInput ?? true) {
word = getWordAtDocPosFromRichText();
word = chatInputElement?.getWordAtDocPos();
} else {
const cursor = chatInput ? chatInput.selectionStart : prompt.length;
word = getWordAtCursor(prompt, cursor);
@ -384,8 +384,6 @@
let chatInputContainerElement;
let chatInputElement;
let getWordAtDocPosFromRichText = () => '';
let filesInputElement;
let commandsElement;
@ -1094,9 +1092,6 @@
prompt = e.md;
command = getCommand();
}}
getWordAtDocPosCallback={(func) => {
getWordAtDocPosFromRichText = func;
}}
json={true}
messageInput={true}
showFormattingButtons={false}

View file

@ -168,7 +168,6 @@
});
};
export let getWordAtDocPosCallback = (func) => {};
export let onSelectionUpdate = (e) => {};
export let id = '';
@ -1209,8 +1208,6 @@
if (messageInput) {
selectTemplate();
}
getWordAtDocPosCallback(getWordAtDocPos);
});
onDestroy(() => {