diff options
Diffstat (limited to 'src/grid')
-rw-r--r-- | src/grid/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/grid/mod.rs b/src/grid/mod.rs index 313973a3..ac54f580 100644 --- a/src/grid/mod.rs +++ b/src/grid/mod.rs @@ -403,6 +403,10 @@ impl<T> Grid<T> { self.cols } + pub fn reset(&mut self) { + self.scroll_limit = 0; + } + pub fn iter_from(&self, point: Point<usize>) -> GridIterator<T> { GridIterator { grid: self, |