aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/compositor.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2022-03-22 05:32:06 +0000
committerBlaž Hrastnik2022-03-28 02:02:13 +0000
commit5c162ef995e3822cd465f2c83874a040ebe153b8 (patch)
treeff0a923b235e96d8c677e97fa2690454bc7f16f8 /helix-term/src/compositor.rs
parent83b3272166013a7c394fb41dca172042e3229ab4 (diff)
Make regex_prompt directly call cx.push_layer
Diffstat (limited to 'helix-term/src/compositor.rs')
-rw-r--r--helix-term/src/compositor.rs8
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>),