We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent faebe27 commit b2fdc83Copy full SHA for b2fdc83
Sources/Views/InputTextView.swift
@@ -347,7 +347,7 @@ open class InputTextView: UITextView {
347
attachments.forEach { (attachment) in
348
let (range, image) = attachment
349
if curLocation < range.location {
350
- let textRange = NSMakeRange(curLocation, range.location)
+ let textRange = NSMakeRange(curLocation, range.location-curLocation)
351
let text = attributedText.attributedSubstring(from: textRange).string.trimmingCharacters(in: .whitespacesAndNewlines)
352
if !text.isEmpty {
353
components.append(text)
0 commit comments