Skip to content

Commit 56198f6

Browse files
committed
Added small fix for empty files.
1 parent 8bc99a0 commit 56198f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SCXcodeMinimap/SCMiniMapView.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ - (void)updateTextView
183183

184184
NSMutableAttributedString *mutableAttributedString = [self.editorTextView.textStorage mutableCopy];
185185

186-
if(mutableAttributedString == nil) {
186+
if(mutableAttributedString.length == 0) {
187187
return;
188188
}
189189

0 commit comments

Comments
 (0)