Skip to content

Commit

Permalink
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -247,8 +247,8 @@ public Rope concatLeaves(LeafRope left, LeafRope right, Encoding encoding,
}

final byte[] bytes = new byte[left.byteLength() + right.byteLength()];
System.arraycopy(left.getBytes(), 0, bytes, 0, left.byteLength());
System.arraycopy(right.getBytes(), 0, bytes, left.byteLength(), right.byteLength());
System.arraycopy(left.getRawBytes(), 0, bytes, 0, left.byteLength());
System.arraycopy(right.getRawBytes(), 0, bytes, left.byteLength(), right.byteLength());

final CodeRange codeRange = commonCodeRange(left.getCodeRange(), right.getCodeRange(), sameCodeRangeProfile, brokenCodeRangeProfile);

0 comments on commit 1544fa7

Please sign in to comment.