Implement Copy for multibuffer anchors
This commit is contained in:
parent
f71145bb32
commit
718f802157
7 changed files with 26 additions and 34 deletions
|
@ -2305,7 +2305,7 @@ impl MultiBufferSnapshot {
|
|||
break;
|
||||
}
|
||||
let (anchor_ix, anchor) = anchors.next().unwrap();
|
||||
let mut anchor = anchor.clone();
|
||||
let mut anchor = *anchor;
|
||||
|
||||
// Leave min and max anchors unchanged if invalid or
|
||||
// if the old excerpt still exists at this location
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue