Skip to content

Commit 42dcf41

Browse files
Update ios/styles/LinkStyle.mm
Co-authored-by: Mikołaj Szydłowski <9szydlowski9@gmail.com>
1 parent 046268a commit 42dcf41

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ios/styles/LinkStyle.mm

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,10 @@ - (NSRange)getFullLinkRangeAt:(NSUInteger)location {
239239
inRange:inputRange
240240
];
241241

242-
return manualUrl == nil ? automaticLinkRange : manualLinkRange;
242+
return
243+
manualLink == nullptr
244+
? automaticLink == nullptr ? NSMakeRange(0,0) : automaticLinkRange
245+
: manualLinkRange;
243246
}
244247

245248
- (void)manageLinkTypingAttributes {

0 commit comments

Comments
 (0)