aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ui.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui.rs b/src/ui.rs
index fe0264b..1d59ac4 100644
--- a/src/ui.rs
+++ b/src/ui.rs
@@ -269,6 +269,10 @@ impl Approver {
269 if self.yolo || self.edits_allowed { 269 if self.yolo || self.edits_allowed {
270 return true; 270 return true;
271 } 271 }
272 // No point showing a diff that no one is present to approve.
273 if !self.interactive {
274 return false;
275 }
272 println!("{preview}"); 276 println!("{preview}");
273 // The path is already on the tool line above. 277 // The path is already on the tool line above.
274 let _ = path; 278 let _ = path;