mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-02 08:53:37 +00:00
fix selecting last newline error
This commit is contained in:
@@ -905,7 +905,7 @@ var _objectsInRange = function(aList, aRange)
|
||||
|
||||
// this allows clicking before and after the (invisible) return character
|
||||
if (point.x > CGRectGetMaxX(lastFrame) && fragment.length > 0 &&
|
||||
[[_textStorage string] characterAtIndex: nlLoc] === '\n' || i === c - 1)
|
||||
[[_textStorage string] characterAtIndex: nlLoc] === '\n')
|
||||
return nlLoc + 1;
|
||||
else if (point.x <= CGRectGetMinX(firstFrame))
|
||||
return fragment._range.location;
|
||||
|
||||
Reference in New Issue
Block a user