ref: be786d9d7e9f80b7b02e468fac819434545f0dd5
parent: c94b2c037f60abab321e53239ab4b49bf0da6b4e
author: phil9 <telephil9@gmail.com>
date: Sat Aug 7 03:32:59 EDT 2021
exit if diff is empty
--- a/vdiff.c
+++ b/vdiff.c
@@ -272,6 +272,10 @@
int e, n;
parse(0);
+ if(lcount==0){
+ fprint(2, "no diff\n");
+ exits(nil);
+ }
if(initdraw(nil, nil, "vdiff")<0)
sysfatal("initdraw: %r");
initcols();