formatting

This commit is contained in:
daboe01
2015-05-29 23:10:28 +02:00
parent a4e41a57d7
commit bd6d5ffbb9
+2 -2
View File
@@ -564,7 +564,7 @@ _oncontextmenuhandler = function () { return false; };
firstFrame = [fragment glyphFrames][0];
// stay on the line the newline character belongs to
if (_isNewlineCharacter([[_textStorage string] characterAtIndex:nlLoc > 0? nlLoc - 1 : 0]))
if (_isNewlineCharacter([[_textStorage string] characterAtIndex:nlLoc > 0 ? nlLoc - 1 : 0]))
nlLoc--;
// Clicked right to the last character
@@ -580,7 +580,7 @@ _oncontextmenuhandler = function () { return false; };
}
}
return point.y > 0? [[_textStorage string] length] : 0;
return point.y > 0 ? [[_textStorage string] length] : 0;
}
- (unsigned)glyphIndexForPoint:(CGPoint)point inTextContainer:(CPTextContainer)container