aboutsummaryrefslogtreecommitdiff
path: root/src/event.rs
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2018-02-15 18:35:49 -0800
committerJoe Wilm <joe@jwilm.com>2018-06-02 09:32:29 -0700
commit45c2b3fbf72fa6dfd36bee590e64314c6da7c6c2 (patch)
tree9f68a9692d0d0754264931d26e1a7cf0400471ed /src/event.rs
parent94796a70fcbc11df2dc642057fef242466822067 (diff)
downloadalacritty-45c2b3fbf72fa6dfd36bee590e64314c6da7c6c2.tar.gz
alacritty-45c2b3fbf72fa6dfd36bee590e64314c6da7c6c2.zip
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)
Diffstat (limited to 'src/event.rs')
-rw-r--r--src/event.rs4
1 files changed, 4 insertions, 0 deletions
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) {