From: Richard M. Stallman Date: Fri, 15 Apr 1994 22:26:34 +0000 (+0000) Subject: (Finsert_file_contents): Fix test for unchanged file. X-Git-Tag: emacs-19.34~8955 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e846c982e69c20a63478d35f735b9f37303d5c44;p=emacs.git (Finsert_file_contents): Fix test for unchanged file. --- diff --git a/src/fileio.c b/src/fileio.c index cda88070d4a..ba509f0ebec 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -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--;