aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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 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.")
2446 error ("maximum buffer size exceeded"); 2446 error ("maximum buffer size exceeded");
2447 } 2447 }
2448 2448
2449 if (NILP (visit)) 2449 if (NILP (visit) && total > 0)
2450 prepare_to_modify_buffer (point, point); 2450 prepare_to_modify_buffer (point, point);
2451 2451
2452 move_gap (point); 2452 move_gap (point);