don't change the file format when we insert another file into the
current one git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2066 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
@@ -466,7 +466,15 @@ void load_buffer(const char *name)
|
||||
}
|
||||
|
||||
if (rc == 0) {
|
||||
file_format fmt_save = fmt;
|
||||
|
||||
read_file(f, filename);
|
||||
|
||||
/* If we're not loading into a new buffer, preserve the file
|
||||
* format. */
|
||||
if (!new_buffer)
|
||||
fmt = fmt_save;
|
||||
|
||||
#ifndef NANO_SMALL
|
||||
stat(filename, &originalfilestat);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user