From 0ceb4ff4e229a9c98e7d66143c6f5e3aa5f303d8 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Sun, 11 Feb 2018 20:01:14 +0100 Subject: [PATCH] Run multiple callbacks per step as the documentation suggests --- src/cursive.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cursive.rs b/src/cursive.rs index b0f647b..7eec0a7 100644 --- a/src/cursive.rs +++ b/src/cursive.rs @@ -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); }