Remove unused function inside UserAutoCompletion
This commit is contained in:
parent
bc3d6d902f
commit
eadc4bb317
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user