changeset 4395:76b24be40a57

(Finsert_file_contents): Don't call prepare_to_modify_buffer if inserting zero characters.
author Richard M. Stallman <rms@gnu.org>
date Sun, 01 Aug 1993 12:19:11 +0000
parents 06a92db6c73b
children 0ab53cbfac0e
files src/fileio.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/fileio.c	Sun Aug 01 11:55:12 1993 +0000
+++ b/src/fileio.c	Sun Aug 01 12:19:11 1993 +0000
@@ -2446,7 +2446,7 @@
       error ("maximum buffer size exceeded");
   }
 
-  if (NILP (visit))
+  if (NILP (visit) && total > 0)
     prepare_to_modify_buffer (point, point);
 
   move_gap (point);