mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-12 05:31:29 +00:00
fix fussy optimization
This commit is contained in:
@@ -199,7 +199,10 @@ CPTextStorageDidProcessEditingNotification = @"CPTextStorageDidProcessEditingNot
|
||||
_changeInLength += lengthChange;
|
||||
aRange.length += lengthChange;
|
||||
|
||||
_editedRange.location == CPNotFound ? aRange : CPUnionRange(_editedRange,aRange);
|
||||
if (_editedRange.location == CPNotFound)
|
||||
_editedRange = aRange;
|
||||
else
|
||||
_editedRange = CPUnionRange(_editedRange,aRange);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user