diff options
author | Blaž Hrastnik | 2020-12-18 10:24:50 +0000 |
---|---|---|
committer | GitHub | 2020-12-18 10:24:50 +0000 |
commit | 3f0dbfcac878131167953b6f57c923a5bc889e80 (patch) | |
tree | 41b876f9bb067e5f199fe53ecb78eeb57d09719b /helix-term/src/compositor.rs | |
parent | b12a6dc8303bbc1b4b08a9abb4668741d154adbd (diff) | |
parent | 25aa45e76c9bec62f36a59768298e1f2ea2678bf (diff) |
Merge pull request #7 from helix-editor/interactive-split-select
File picker/interactive split prompt
Diffstat (limited to 'helix-term/src/compositor.rs')
-rw-r--r-- | helix-term/src/compositor.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/src/compositor.rs b/helix-term/src/compositor.rs index 2e65f02a..f0d94dbc 100644 --- a/helix-term/src/compositor.rs +++ b/helix-term/src/compositor.rs @@ -19,7 +19,7 @@ use smol::Executor; use tui::buffer::Buffer as Surface; use tui::layout::Rect; -pub type Callback = Box<dyn Fn(&mut Compositor)>; +pub type Callback = Box<dyn FnOnce(&mut Compositor)>; // --> EventResult should have a callback that takes a context with methods like .popup(), // .prompt() etc. That way we can abstract it from the renderer. |