Index: usr.bin/diff/diffreg.c =================================================================== --- usr.bin/diff/diffreg.c +++ usr.bin/diff/diffreg.c @@ -1216,7 +1216,7 @@ } if (diff_format != D_GFORMAT) i = fetch(ixnew, c, d, f2, diff_format == D_NORMAL ? '>' : '\0', 0, *pflags); - if (i != 0 && diff_format == D_EDIT) { + if (diff_format == D_EDIT && i != 0) { /* * A non-zero return value for D_EDIT indicates that the * last line printed was a bare dot (".") that has been