tweaks: rename a type, to better fit the general pattern

This commit is contained in:
Benno Schulenberg 2019-10-02 17:09:22 +02:00
parent 23c8ef70aa
commit cc4ce8d83b
2 changed files with 4 additions and 4 deletions

View File

@ -1029,7 +1029,7 @@ void do_insertfile(void)
char *given = mallocstrcpy(NULL, "");
/* The last answer the user typed at the statusbar prompt. */
#ifndef NANO_TINY
file_format original_fmt = openfile->fmt;
format_type was_fmt = openfile->fmt;
bool execute = FALSE;
#endif
@ -1197,7 +1197,7 @@ void do_insertfile(void)
set_modified();
#ifndef NANO_TINY
/* Ensure that the buffer retains the format that it had. */
openfile->fmt = original_fmt;
openfile->fmt = was_fmt;
#endif
refresh_needed = TRUE;
}

View File

@ -147,7 +147,7 @@
/* Enumeration types. */
typedef enum {
NIX_FILE, DOS_FILE, MAC_FILE
} file_format;
} format_type;
typedef enum {
HUSH, NOTICE, MILD, ALERT
@ -381,7 +381,7 @@ typedef struct openfilestruct {
/* The mark's x position in the above line. */
mark_type kind_of_mark;
/* Whether it is a soft (with Shift) or a hard mark. */
file_format fmt;
format_type fmt;
/* The file's format -- Unix or DOS or Mac or mixed. */
undo *undotop;
/* The top of the undo list. */