Index: usr.bin/diff/diffreg.c =================================================================== --- usr.bin/diff/diffreg.c +++ usr.bin/diff/diffreg.c @@ -1462,7 +1462,7 @@ printf("***************"); if (flags & (D_PROTOTYPE | D_MATCHLAST)) { - f = match_function(ixold, lowa - 1, f1); + f = match_function(ixold, cvp->a - 1 , f1); if (f != NULL) printf(" %s", f); } @@ -1563,13 +1563,14 @@ lowc = MAX(1, cvp->c - diff_context); upd = MIN(len[1], context_vec_ptr->d + diff_context); + printf("@@ -"); uni_range(lowa, upb); printf(" +"); uni_range(lowc, upd); printf(" @@"); if (flags & (D_PROTOTYPE | D_MATCHLAST)) { - f = match_function(ixold, lowa - 1, f1); + f = match_function(ixold, cvp->a - 1, f1); if (f != NULL) printf(" %s", f); }