mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-22 00:01:00 +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) {
|
||||
guard let autocompleteQuery = viewModel.contentWarningAutocompleteQuery,
|
||||
let queryRange = viewModel.contentWarningTextToSelectedRange.range(of: autocompleteQuery, options: .backwards),
|
||||
let textToSelectedRangeRange = viewModel.contentWarning.range(of: viewModel.contentWarningTextToSelectedRange)
|
||||
let queryRange =
|
||||
viewModel.contentWarningTextToSelectedRange.range(of: autocompleteQuery, options: .backwards),
|
||||
let textToSelectedRangeRange =
|
||||
viewModel.contentWarning.range(of: viewModel.contentWarningTextToSelectedRange)
|
||||
else { return }
|
||||
|
||||
let replaced = viewModel.contentWarningTextToSelectedRange.replacingOccurrences(
|
||||
|
|
Loading…
Reference in a new issue