Run multiple callbacks per step as the documentation suggests

This commit is contained in:
Gergely Nagy 2018-02-11 20:01:14 +01:00
parent 847fd7d800
commit 0ceb4ff4e2

View File

@ -526,7 +526,7 @@ impl Cursive {
///
/// [`run(&mut self)`]: #method.run
pub fn step(&mut self) {
if let Ok(cb) = self.cb_source.try_recv() {
while let Ok(cb) = self.cb_source.try_recv() {
cb(self);
}