diff options
author | Blaž Hrastnik | 2022-03-22 05:32:06 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2022-03-28 02:02:13 +0000 |
commit | 5c162ef995e3822cd465f2c83874a040ebe153b8 (patch) | |
tree | ff0a923b235e96d8c677e97fa2690454bc7f16f8 /helix-term/src/compositor.rs | |
parent | 83b3272166013a7c394fb41dca172042e3229ab4 (diff) |
Make regex_prompt directly call cx.push_layer
Diffstat (limited to 'helix-term/src/compositor.rs')
-rw-r--r-- | helix-term/src/compositor.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/helix-term/src/compositor.rs b/helix-term/src/compositor.rs index 4f988ace..e3cec643 100644 --- a/helix-term/src/compositor.rs +++ b/helix-term/src/compositor.rs @@ -9,14 +9,6 @@ use tui::buffer::Buffer as Surface; pub type Callback = Box<dyn FnOnce(&mut Compositor, &mut Context)>; -// --> EventResult should have a callback that takes a context with methods like .popup(), -// .prompt() etc. That way we can abstract it from the renderer. -// Q: How does this interact with popups where we need to be able to specify the rendering of the -// popup? -// A: It could just take a textarea. -// -// If Compositor was specified in the callback that's then problematic because of - // Cursive-inspired pub enum EventResult { Ignored(Option<Callback>), |