From b6f7b39c0dd28755143dd39d90f5d81f7720d760 Mon Sep 17 00:00:00 2001 From: Joe Wilm Date: Sun, 18 Sep 2016 18:16:58 -0700 Subject: Minor fixes Remove random println and add a missing #[inline] --- src/grid.rs | 1 + src/term.rs | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/grid.rs b/src/grid.rs index c3473d8c..8dbfd0b5 100644 --- a/src/grid.rs +++ b/src/grid.rs @@ -134,6 +134,7 @@ impl Grid { } } + #[inline] pub fn contains(&self, cursor: &Cursor) -> bool { self.lines > cursor.line && self.cols > cursor.col } diff --git a/src/term.rs b/src/term.rs index 3dfab06c..44d0d7d6 100644 --- a/src/term.rs +++ b/src/term.rs @@ -409,7 +409,6 @@ impl Term { // Scroll between origin and bottom { let end = self.scroll_region.end; - println!("origin={}, lines={}", origin, lines); let start = origin + lines; self.grid.scroll_down(start..end, lines); } -- cgit