mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-25 17:50:59 +00:00
Line length
This commit is contained in:
parent
9131945664
commit
376c62e399
1 changed files with 4 additions and 2 deletions
|
@ -345,8 +345,10 @@ private extension CompositionView {
|
||||||
|
|
||||||
func spoilerTextAutocompleteSelected(_ autocompleteText: String) {
|
func spoilerTextAutocompleteSelected(_ autocompleteText: String) {
|
||||||
guard let autocompleteQuery = viewModel.contentWarningAutocompleteQuery,
|
guard let autocompleteQuery = viewModel.contentWarningAutocompleteQuery,
|
||||||
let queryRange = viewModel.contentWarningTextToSelectedRange.range(of: autocompleteQuery, options: .backwards),
|
let queryRange =
|
||||||
let textToSelectedRangeRange = viewModel.contentWarning.range(of: viewModel.contentWarningTextToSelectedRange)
|
viewModel.contentWarningTextToSelectedRange.range(of: autocompleteQuery, options: .backwards),
|
||||||
|
let textToSelectedRangeRange =
|
||||||
|
viewModel.contentWarning.range(of: viewModel.contentWarningTextToSelectedRange)
|
||||||
else { return }
|
else { return }
|
||||||
|
|
||||||
let replaced = viewModel.contentWarningTextToSelectedRange.replacingOccurrences(
|
let replaced = viewModel.contentWarningTextToSelectedRange.replacingOccurrences(
|
||||||
|
|
Loading…
Reference in a new issue