We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents faebe27 + b2fdc83 commit 117332dCopy full SHA for 117332d
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