From 57d8d468192cde12027de5b175f5bc9dcd554ea5 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sun, 1 Aug 1993 12:19:11 +0000 Subject: [PATCH] (Finsert_file_contents): Don't call prepare_to_modify_buffer if inserting zero characters. --- src/fileio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fileio.c b/src/fileio.c index 04962eee1df..f4537ba0fda 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); -- 2.39.5