mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-12 22:40:46 -08:00
(Finsert_file_contents): Don't call prepare_to_modify_buffer
if inserting zero characters.
This commit is contained in:
parent
1d673d85da
commit
57d8d46819
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue