diff options
author | Blaž Hrastnik | 2021-03-08 08:32:13 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-03-08 08:32:13 +0000 |
commit | 8fe459066605a794f8dceedaf872f71ffd4c750a (patch) | |
tree | 0d3f10b3668dbfc8aa7805d1974f89ed1333b60d /helix-term/src/application.rs | |
parent | ddcf5156c0260debc522b0420f93e0c523697eb4 (diff) |
ui: popup: scroll documentation popups with c-u/c-d.
Diffstat (limited to 'helix-term/src/application.rs')
-rw-r--r-- | helix-term/src/application.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs index afbf1f6b..583d8fc8 100644 --- a/helix-term/src/application.rs +++ b/helix-term/src/application.rs @@ -60,7 +60,11 @@ impl Application { let editor = &mut self.editor; let compositor = &mut self.compositor; - let mut cx = crate::compositor::Context { editor, executor }; + let mut cx = crate::compositor::Context { + editor, + executor, + scroll: None, + }; compositor.render(&mut cx); } @@ -91,6 +95,7 @@ impl Application { let mut cx = crate::compositor::Context { editor: &mut self.editor, executor: &self.executor, + scroll: None, }; // Handle key events let should_redraw = match event { |