]> git.eshelyaron.com Git - emacs.git/commitdiff
(Finsert_file_contents): Pass del_range_1 two ends, not a length.
authorRichard M. Stallman <rms@gnu.org>
Fri, 4 Mar 1994 04:19:14 +0000 (04:19 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 4 Mar 1994 04:19:14 +0000 (04:19 +0000)
src/fileio.c

index 3b1513600e28e52d66d15c5753c7a393b980886e..e24dca08306892a10d4b8acb3f2140a2dd6549b7 100644 (file)
@@ -2681,7 +2681,7 @@ and (2) it puts less data in the undo list.")
       /* Arrange to read only the nonmatching middle part of the file.  */
       XFASTINT (beg) = same_at_start - BEGV;
       XFASTINT (end) = st.st_size - (ZV - same_at_end);
-      del_range_1 (same_at_start, same_at_end - same_at_start, 0);
+      del_range_1 (same_at_start, same_at_end, 0);
       /* Insert from the file at the proper position.  */
       SET_PT (same_at_start);
     }