mirror of
git://git.9front.org/plan9front/plan9front
synced 2025-01-12 11:10:06 +00:00
vdiff: exit if diff is empty
currently vdiff will display an empty window if there is no diff. Print a message and exit early instead.
This commit is contained in:
parent
039015ad71
commit
025a2d172e
1 changed files with 1 additions and 1 deletions
|
@ -613,7 +613,7 @@ threadmain(int argc, char *argv[])
|
||||||
}ARGEND;
|
}ARGEND;
|
||||||
|
|
||||||
parse(0);
|
parse(0);
|
||||||
if(nblocks==0){
|
if(nblocks==1 && blocks[0]->nlines==0){
|
||||||
fprint(2, "no diff\n");
|
fprint(2, "no diff\n");
|
||||||
exits(nil);
|
exits(nil);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue