From 45c2b3fbf72fa6dfd36bee590e64314c6da7c6c2 Mon Sep 17 00:00:00 2001 From: Joe Wilm Date: Thu, 15 Feb 2018 18:35:49 -0800 Subject: checkpoint: very basic scrolling works Things that do not work - Limiting how far back in the buffer it's possible to scroll - Selections (need to transform to buffer offsets) --- src/event.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/event.rs') diff --git a/src/event.rs b/src/event.rs index 4ae25860..9c3e8edc 100644 --- a/src/event.rs +++ b/src/event.rs @@ -55,6 +55,10 @@ impl<'a, N: Notify + 'a> input::ActionContext for ActionContext<'a, N> { *self.size_info } + fn scroll(&mut self, count: isize) { + self.terminal.scroll_display(count); + } + fn copy_selection(&self, buffer: ::copypasta::Buffer) { if let Some(ref selection) = *self.selection { if let Some(ref span) = selection.to_span(self.terminal) { -- cgit