diff --git a/AppKit/CPTextView/CPLayoutManager.j b/AppKit/CPTextView/CPLayoutManager.j index 540dcde24..cb4f7f0ca 100644 --- a/AppKit/CPTextView/CPLayoutManager.j +++ b/AppKit/CPTextView/CPLayoutManager.j @@ -652,7 +652,7 @@ _oncontextmenuhandler = function () { return false; }; return nil; } -- (id)_firstLineFragmentForLineFromLocation:(unsigned)location inTextContainer:(CPTextContainer)aContainer +- (id)_firstLineFragmentForLineFromLocation:(unsigned)location { var l = _lineFragments.length; @@ -673,7 +673,7 @@ _oncontextmenuhandler = function () { return false; }; return nil; } -- (id)_lastLineFragmentForLineFromLocation:(unsigned)location inTextContainer:(CPTextContainer)aContainer +- (id)_lastLineFragmentForLineFromLocation:(unsigned)location { var l = _lineFragments.length; diff --git a/AppKit/CPTextView/CPTextView.j b/AppKit/CPTextView/CPTextView.j index 9cb275de4..887b9b7aa 100644 --- a/AppKit/CPTextView/CPTextView.j +++ b/AppKit/CPTextView/CPTextView.j @@ -1208,7 +1208,7 @@ var kDelegateRespondsTo_textShouldBeginEditing var nglyphs = [_layoutManager numberOfCharacters], loc = nglyphs == _selectionRange.location ? MAX(0, _selectionRange.location - 1) : _selectionRange.location; - fragment = [_layoutManager _firstLineFragmentForLineFromLocation:loc inTextContainer:_textContainer]; + fragment = [_layoutManager _firstLineFragmentForLineFromLocation:loc]; if (fragment) [self _establishSelection:CPMakeRange(fragment._range.location, 0) byExtending:flag]; @@ -1229,7 +1229,7 @@ var kDelegateRespondsTo_textShouldBeginEditing if (![self isSelectable]) return; - var fragment = [_layoutManager _lastLineFragmentForLineFromLocation:_selectionRange.location inTextContainer:_textContainer]; + var fragment = [_layoutManager _lastLineFragmentForLineFromLocation:_selectionRange.location]; if (!fragment) return;