mirror of
git://git.sv.gnu.org/nano.git
synced 2025-01-24 02:02:45 +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, "");
|
char *given = mallocstrcpy(NULL, "");
|
||||||
/* The last answer the user typed at the statusbar prompt. */
|
/* The last answer the user typed at the statusbar prompt. */
|
||||||
#ifndef NANO_TINY
|
#ifndef NANO_TINY
|
||||||
file_format original_fmt = openfile->fmt;
|
format_type was_fmt = openfile->fmt;
|
||||||
bool execute = FALSE;
|
bool execute = FALSE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -1197,7 +1197,7 @@ void do_insertfile(void)
|
|||||||
set_modified();
|
set_modified();
|
||||||
#ifndef NANO_TINY
|
#ifndef NANO_TINY
|
||||||
/* Ensure that the buffer retains the format that it had. */
|
/* Ensure that the buffer retains the format that it had. */
|
||||||
openfile->fmt = original_fmt;
|
openfile->fmt = was_fmt;
|
||||||
#endif
|
#endif
|
||||||
refresh_needed = TRUE;
|
refresh_needed = TRUE;
|
||||||
}
|
}
|
||||||
|
@ -147,7 +147,7 @@
|
|||||||
/* Enumeration types. */
|
/* Enumeration types. */
|
||||||
typedef enum {
|
typedef enum {
|
||||||
NIX_FILE, DOS_FILE, MAC_FILE
|
NIX_FILE, DOS_FILE, MAC_FILE
|
||||||
} file_format;
|
} format_type;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
HUSH, NOTICE, MILD, ALERT
|
HUSH, NOTICE, MILD, ALERT
|
||||||
@ -381,7 +381,7 @@ typedef struct openfilestruct {
|
|||||||
/* The mark's x position in the above line. */
|
/* The mark's x position in the above line. */
|
||||||
mark_type kind_of_mark;
|
mark_type kind_of_mark;
|
||||||
/* Whether it is a soft (with Shift) or a hard 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. */
|
/* The file's format -- Unix or DOS or Mac or mixed. */
|
||||||
undo *undotop;
|
undo *undotop;
|
||||||
/* The top of the undo list. */
|
/* The top of the undo list. */
|
||||||
|
Loading…
Reference in New Issue
Block a user