diff options
Diffstat (limited to 'src/output.rs')
-rw-r--r-- | src/output.rs | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/output.rs b/src/output.rs index 311443b..b3a9a2a 100644 --- a/src/output.rs +++ b/src/output.rs @@ -74,16 +74,9 @@ impl Output { } pub async fn refresh(&mut self) -> Result<()> { - let diffs = &[ - self.next().screen().contents_diff(self.cur().screen()), - self.next().screen().input_mode_diff(self.cur().screen()), - self.next().screen().title_diff(self.cur().screen()), - self.next().screen().bells_diff(self.cur().screen()), - ]; - for diff in diffs { - write_stdout(&diff).await?; - self.cur_mut().process(&diff); - } + let diff = self.next().screen().state_diff(self.cur().screen()); + write_stdout(&diff).await?; + self.cur_mut().process(&diff); Ok(()) } } |