Improved Code Style
This commit is contained in:
@@ -112,7 +112,7 @@
|
||||
MPExpression *targetExpression = [self.expressionStorage elementAtIndexPath:targetExpressionPath];
|
||||
NSUInteger locationInTarget = selectionPath.lastIndex;
|
||||
NSUInteger locationInElement;
|
||||
NSUInteger targetElementIndex = [targetExpression indexOfElementAtSymbolLocation:locationInTarget
|
||||
NSUInteger targetElementIndex = [targetExpression indexOfElementAtLocation:locationInTarget
|
||||
offset:&locationInElement];
|
||||
|
||||
id<MPExpressionElement> targetElement;
|
||||
@@ -172,7 +172,7 @@
|
||||
MPExpression *targetExpression = [self.expressionStorage elementAtIndexPath:targetExpressionPath];
|
||||
NSUInteger locationInTarget = selectionPath.lastIndex;
|
||||
NSUInteger locationInElement;
|
||||
NSUInteger targetElementIndex = [targetExpression indexOfElementAtSymbolLocation:locationInTarget
|
||||
NSUInteger targetElementIndex = [targetExpression indexOfElementAtLocation:locationInTarget
|
||||
offset:&locationInElement];
|
||||
|
||||
NSUInteger previousElementIndex = targetElementIndex - (locationInElement == 0 ? 1 : 0);
|
||||
|
||||
Reference in New Issue
Block a user