Use Rope instead of String for buffer diff base (#11300)
As an attempt to do things better when showing diff hunks, store diff base as Rope, not String, to have cheaper clones when the diff base text is reused, e.g. creating another buffer with the diff base text for hunk diff expanding. Release Notes: - N/A
This commit is contained in:
@@ -145,7 +145,8 @@ mod tests {
|
||||
1.five
|
||||
1.six
|
||||
"
|
||||
.unindent(),
|
||||
.unindent()
|
||||
.into(),
|
||||
),
|
||||
cx,
|
||||
);
|
||||
@@ -181,7 +182,8 @@ mod tests {
|
||||
2.four
|
||||
2.six
|
||||
"
|
||||
.unindent(),
|
||||
.unindent()
|
||||
.into(),
|
||||
),
|
||||
cx,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user