mirror of
git://git.sv.gnu.org/nano.git
synced 2025-01-23 17:52:07 +03:00
tweaks: rename a type, to better fit the general pattern
This commit is contained in:
parent
23c8ef70aa
commit
cc4ce8d83b
@ -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;
|
||||
}
|
||||
|
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user