From 9ac915212a6a2df2b44b7e91b6e4fe49543524ab Mon Sep 17 00:00:00 2001 From: Stephan Dilly Date: Fri, 3 Apr 2020 22:16:31 +0200 Subject: [PATCH] fix diff staying blank --- src/app.rs | 2 +- src/components/diff.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app.rs b/src/app.rs index a514bebc..5a4c25d4 100644 --- a/src/app.rs +++ b/src/app.rs @@ -439,7 +439,7 @@ impl App { } }; - self.update(); + self.update_diff(); } } diff --git a/src/components/diff.rs b/src/components/diff.rs index c5c75c39..705f5eb9 100644 --- a/src/components/diff.rs +++ b/src/components/diff.rs @@ -39,6 +39,7 @@ impl DiffComponent { pub fn clear(&mut self) { self.current.0.clear(); self.diff = Diff::default(); + self.current_hash = 0; } /// pub fn update(