From 3a6849ff66b2316c12c4451ff71a1ec57f2dc4af Mon Sep 17 00:00:00 2001 From: Raphael Amorim Date: Sat, 17 Aug 2024 23:47:08 +0200 Subject: [PATCH] use slice --- frontends/rioterm/src/screen/mod.rs | 2 +- frontends/rioterm/src/state/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontends/rioterm/src/screen/mod.rs b/frontends/rioterm/src/screen/mod.rs index e0208a56d1..43b177faf2 100644 --- a/frontends/rioterm/src/screen/mod.rs +++ b/frontends/rioterm/src/screen/mod.rs @@ -1215,7 +1215,7 @@ impl Screen<'_> { self.state.set_ime(self.ime.preedit()); self.state.prepare_term( - rows, + &rows, cursor, &mut self.sugarloaf, &self.context_manager, diff --git a/frontends/rioterm/src/state/mod.rs b/frontends/rioterm/src/state/mod.rs index bde181336b..7a2e6d1617 100644 --- a/frontends/rioterm/src/state/mod.rs +++ b/frontends/rioterm/src/state/mod.rs @@ -556,7 +556,7 @@ impl State { #[inline] pub fn prepare_term( &mut self, - rows: Vec>, + rows: &[Row], cursor: CursorState, sugarloaf: &mut Sugarloaf, context_manager: &crate::context::ContextManager,