]> git.wh0rd.org Git - nano.git/commitdiff
Oops, another Mac fix
authorChris Allegretta <chrisa@asty.org>
Sat, 22 Sep 2001 05:08:12 +0000 (05:08 +0000)
committerChris Allegretta <chrisa@asty.org>
Sat, 22 Sep 2001 05:08:12 +0000 (05:08 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@776 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

files.c

diff --git a/files.c b/files.c
index d31fcdc5f10eb5f560488a69144ddfe7ffe04218..bb0d35ddf76793ebd5fa73b558689c80f848dd9b 100644 (file)
--- a/files.c
+++ b/files.c
@@ -1148,7 +1148,7 @@ int write_file(char *name, int tmp, int append, int nonamechange)
            return -1;
        } else if (size > 0) {
 #ifndef NANO_SMALL
-           if (ISSET(DOS_FILE)) {
+           if (ISSET(DOS_FILE) || ISSET(MAC_FILE)) {
                size = write(fd, "\r", 1);
                lineswritten++;
                if (size == -1) {