fix cursor up newline issues

This commit is contained in:
daboe01 committed 2015-07-09 20:45:23 +02:00
1 parent 4b0fe879cb
commit 84a3ee209a
1 file changed
+1 -1
+1 -1
View File
@@ -583,7 +583,7 @@ var kDelegateRespondsTo_textShouldBeginEditing
[_layoutManager _validateLayoutAndGlyphs];
[self sizeToFit];
[self scrollRangeToVisible:_selectionRange];
_stickyXLocation = _caret._rect.origin.x;
_stickyXLocation = MAX(0, _caret._rect.origin.x - 1);
}
#pragma mark -