updated for version 7.1-143
diff --git a/src/diff.c b/src/diff.c
index 23142cf..bdbda08 100644
--- a/src/diff.c
+++ b/src/diff.c
@@ -1310,7 +1310,7 @@
 		    dp->df_count[idx_new] += -off;
 		off = 0;
 	    }
-	    for (i = idx_orig; i < idx_new + !notset; ++i)
+	    for (i = idx_orig; i < idx_new; ++i)
 		if (curtab->tp_diffbuf[i] != NULL)
 		    dp->df_count[i] = dpl->df_lnum[i] + dpl->df_count[i]
 						       - dp->df_lnum[i] + off;
diff --git a/src/version.c b/src/version.c
index daa1b0b..fa09a10 100644
--- a/src/version.c
+++ b/src/version.c
@@ -667,6 +667,8 @@
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    143,
+/**/
     142,
 /**/
     141,