diff --git a/AppKit/CPTextView/CPTextStorage.j b/AppKit/CPTextView/CPTextStorage.j index 447a14f10..2d5e9171d 100755 --- a/AppKit/CPTextView/CPTextStorage.j +++ b/AppKit/CPTextView/CPTextStorage.j @@ -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); } }