diff --git a/src/gui/Pages/Chat/AutoCompletion/UserAutoCompletion.qml b/src/gui/Pages/Chat/AutoCompletion/UserAutoCompletion.qml index 0a0e2060..d3738300 100644 --- a/src/gui/Pages/Chat/AutoCompletion/UserAutoCompletion.qml +++ b/src/gui/Pages/Chat/AutoCompletion/UserAutoCompletion.qml @@ -32,16 +32,6 @@ HListView { open && wordToComplete ? wordToComplete.word : "" - function getCurrentWordStart() { - const lastWordMatch = /(?:^|\s)[^\s]+$/.exec(textArea.text) - if (! lastWordMatch) return textArea.length - - if (! (lastWordMatch.index === 0 && ! textArea.text[0].match(/\s/))) - return lastWordMatch.index + 1 - - return lastWordMatch.index - } - function replaceCompletionOrCurrentWord(withText) { const current = textArea.getWordBehindCursor() if (! current) return