From f34e1d9a028cb64c756c556575b1772e97f28202 Mon Sep 17 00:00:00 2001 From: quininer kel Date: Wed, 26 Apr 2017 18:35:01 +0800 Subject: [PATCH] Fix `VecExt::splice` conflict with `Vec::splice` --- src/views/text_area.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/text_area.rs b/src/views/text_area.rs index f6c5fe7..4f1d6ea 100644 --- a/src/views/text_area.rs +++ b/src/views/text_area.rs @@ -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()); }