Adding the option --unix (and 'set unix'),

to save a file by default in Unix format.


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5342 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
Benno Schulenberg
2015-08-04 18:49:57 +00:00
parent 95e1f55574
commit 70cbbda87c
9 changed files with 39 additions and 4 deletions

View File

@@ -908,6 +908,9 @@ void read_file(FILE *f, int fd, const char *filename, bool undoable, bool checkw
statusbar(P_("Read %lu line (Warning: No write permission)",
"Read %lu lines (Warning: No write permission)",
(unsigned long)num_lines), (unsigned long)num_lines);
if (ISSET(MAKE_IT_UNIX))
openfile->fmt = NIX_FILE;
}
/* Open the file (and decide if it exists). If newfie is TRUE, display