From e846c982e69c20a63478d35f735b9f37303d5c44 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Fri, 15 Apr 1994 22:26:34 +0000 Subject: [PATCH] (Finsert_file_contents): Fix test for unchanged file. --- src/fileio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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--; -- 2.39.5