* src/fileio.c (Finsert_file_contents): Fix last change.

This commit is contained in:
Eli Zaretskii 2025-01-19 14:20:18 +02:00
parent 26c9fbc94d
commit f367b01f12

View file

@ -4754,6 +4754,11 @@ by calling `format-decode', which see. */)
/* For a special file that is not seekable, all we can do is guess. */
total = READ_BUF_SIZE;
/* From here on, treat a file with zero size as not seekable. This
causes us to read until we actually hit EOF. */
if (regular && st.st_size == 0)
seekable = false;
if (NILP (visit) && total > 0)
{
if (!NILP (BVAR (current_buffer, file_truename))