From 8b913b570b95f17c9380a9b1f3a487e7c098ecaa Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Thu, 14 Apr 2011 09:56:52 +0200 Subject: [PATCH] * fileio.c (Finsert_file_contents): Fix typo in 2005-05-13 change. (Bug#8496) --- src/ChangeLog | 5 +++++ src/fileio.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index d2c95aee4c..11ae63fe4d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2011-04-14 Andreas Schwab + + * fileio.c (Finsert_file_contents): Fix typo in 2005-05-13 + change. (Bug#8496) + 2011-04-13 Eli Zaretskii * xdisp.c (handle_invisible_prop): Don't call bidi_paragraph_init diff --git a/src/fileio.c b/src/fileio.c index 7e2d888b22..8fd89957ad 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -3800,7 +3800,7 @@ variable `last-coding-system-used' to the coding system actually used. */) /* For a special file, all we can do is guess. */ total = READ_BUF_SIZE; - if (NILP (visit) && inserted > 0) + if (NILP (visit) && total > 0) { #ifdef CLASH_DETECTION if (!NILP (BVAR (current_buffer, file_truename)) -- 2.20.1