M cursive/Cargo.toml +1 -1
@@ 9,7 9,7 @@ repository = "https://nest.pijul.com/der
[dependencies]
log = "~0.4.1"
env_logger = "~0.5.6"
-cursive = "~0.9.2"
+cursive = "0.11.1"
frappe = "~0.3.1"
unicode-width = "~0.1.4"
unicode-segmentation = "~1.2.0"
M cursive/src/views/mod.rs +4 -3
@@ 130,9 130,9 @@ pub fn visualize_keymap<V, C>(view: V, b
};
if let Some(ref mut layer) = overlay {
- layer.find_id(ID_KEYMAP, &mut update_keymap).unwrap()
+ update_keymap(&mut layer.find_id(ID_KEYMAP).unwrap())
} else {
- stack.find_id(ID_KEYMAP, &mut update_keymap).unwrap()
+ update_keymap(&mut stack.find_id(ID_KEYMAP).unwrap())
}
};
@@ 154,7 154,8 @@ pub fn visualize_keymap<V, C>(view: V, b
if show {
/* The overlay is blocking the event from the inner view
* so we need to separately fire it again. */
- stack.find_id(ID_INNER, |view: &mut V| view.on_event(event.clone()));
+ stack.find_id::<V>(ID_INNER).unwrap()
+ .on_event(event.clone());
}
stack.on_event(event)
})