aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>1993-08-01 12:19:11 +0000
committerRichard M. Stallman <[email protected]>1993-08-01 12:19:11 +0000
commit57d8d468192cde12027de5b175f5bc9dcd554ea5 (patch)
tree34ebe31058354258610fad2b48f5bf48dfc27460 /src
parent1d673d85da7649c03cd8fd4e987c68778fdaab92 (diff)
(Finsert_file_contents): Don't call prepare_to_modify_buffer
if inserting zero characters.
Diffstat (limited to 'src')
-rw-r--r--src/fileio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c
index 04962eee1d..f4537ba0fd 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -2446,7 +2446,7 @@ If VISIT is non-nil, BEG and END must be nil.")
error ("maximum buffer size exceeded");
}
- if (NILP (visit))
+ if (NILP (visit) && total > 0)
prepare_to_modify_buffer (point, point);
move_gap (point);