mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-12 11:37:07 +00:00
fix selecting last newline error
This commit is contained in:
1 parent
9cf8ec5dd7
commit
7cbb103376
1 file changed
+1
-1
@@ -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