parent
915446ebc9
commit
555385646e
|
|
@ -102,13 +102,13 @@ fun String.applyAutocompleteSuggestion(
|
||||||
this.replaceRange(
|
this.replaceRange(
|
||||||
cursorPosition - suggestion.query.length - 1,
|
cursorPosition - suggestion.query.length - 1,
|
||||||
cursorPosition,
|
cursorPosition,
|
||||||
"#${suggestion.channel.name} "
|
"<#${suggestion.channel.id}> "
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
this.replaceRange(
|
this.replaceRange(
|
||||||
cursorPosition - suggestion.query.length - 1,
|
cursorPosition - suggestion.query.length - 1,
|
||||||
cursorPosition,
|
cursorPosition,
|
||||||
"<#${suggestion.channel.id}> "
|
"#${suggestion.channel.name} "
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue