mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Fix assertion (off-by-one)
This commit is contained in:
@@ -9,7 +9,7 @@ NSAttributedString* AttributedStringWithMarkedUpRanges (std::string const& in, s
|
||||
{
|
||||
NSMutableAttributedString* res = [[NSMutableAttributedString alloc] init];
|
||||
NSDictionary* highlightAttrs = @{ FLMatchingTextAttributeName : [NSNull null] };
|
||||
ASSERT(offset >= 0 && offset < in.size());
|
||||
ASSERT_LE(offset, in.size());
|
||||
|
||||
std::string text(in);
|
||||
if(offset > 0)
|
||||
|
||||
Reference in New Issue
Block a user