(Finsert_file_contents): Fix test for unchanged file.
This commit is contained in:
parent
7cdedc3fad
commit
e846c982e6
1 changed files with 1 additions and 1 deletions
|
@ -2670,7 +2670,7 @@ and (2) it puts less data in the undo list.")
|
|||
immediate_quit = 0;
|
||||
/* If the file matches the buffer completely,
|
||||
there's no need to replace anything. */
|
||||
if (same_at_start == ZV)
|
||||
if (same_at_start == st.st_size)
|
||||
{
|
||||
close (fd);
|
||||
specpdl_ptr--;
|
||||
|
|
Loading…
Add table
Reference in a new issue