(detect_coding_iso2022): Do not exclude posibility of
[bpt/emacs.git] / src / fileio.c
index 3540229..9ad7a42 100644 (file)
@@ -4076,7 +4076,7 @@ to the file, instead of any buffer contents, and END is ignored.")
       save_errno = errno;
     }
 
-  if (coding.require_flushing)
+  if (coding.require_flushing && !coding.last_block)
     {
       /* We have to flush out a data. */
       coding.last_block = 1;