mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 17:35:00 +00:00
Fix VecExt::splice
conflict with Vec::splice
This commit is contained in:
parent
440578c7d1
commit
f34e1d9a02
@ -356,7 +356,7 @@ impl TextArea {
|
||||
let affected_rows = first_row..last_row;
|
||||
let replacement_rows = new_rows.into_iter()
|
||||
.map(|row| row.shifted(first_byte));
|
||||
self.rows.splice(affected_rows, replacement_rows);
|
||||
VecExt::splice(&mut self.rows, affected_rows, replacement_rows);
|
||||
self.fix_ghost_row();
|
||||
self.scrollbase.set_heights(size.y, self.rows.len());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user