From c5c46df613f974935766f39b7b903097ee306c41 Mon Sep 17 00:00:00 2001 From: Andrew Hankinson Date: Wed, 13 Aug 2014 19:44:23 -0400 Subject: [PATCH] Fixed: typo --- AppKit/CPTextView/CPTextView.j | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AppKit/CPTextView/CPTextView.j b/AppKit/CPTextView/CPTextView.j index 1697732b0..5944bf661 100755 --- a/AppKit/CPTextView/CPTextView.j +++ b/AppKit/CPTextView/CPTextView.j @@ -540,12 +540,12 @@ var kDelegateRespondsTo_textShouldBeginEditing inTextContainer:_textContainer rectCount:nil], effectiveSelectionColor = [self _isFocused] ? [_selectedTextAttributes objectForKey:CPBackgroundColorAttributeName] : [CPColor _selectedTextBackgroundColorUnfocussed], - lenghtRect = rects.length; + lengthRect = rects.length; CGContextSaveGState(ctx); CGContextSetFillColor(ctx, effectiveSelectionColor); - for (var i = 0; i < lenghtRect; i++) + for (var i = 0; i < lengthRect; i++) { rects[i].origin.x += _textContainerOrigin.x; rects[i].origin.y += _textContainerOrigin.y;