comment fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2415 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
a853e2d650
commit
b41df4a140
|
@ -1184,6 +1184,7 @@ bool open_pipe(const char *command)
|
||||||
nperror("fdopen");
|
nperror("fdopen");
|
||||||
|
|
||||||
read_file(f, "stdin");
|
read_file(f, "stdin");
|
||||||
|
|
||||||
/* If multibuffer mode is on, we could be here in view mode. If so,
|
/* If multibuffer mode is on, we could be here in view mode. If so,
|
||||||
* don't set the modification flag. */
|
* don't set the modification flag. */
|
||||||
if (!ISSET(VIEW_MODE))
|
if (!ISSET(VIEW_MODE))
|
||||||
|
|
32
src/nano.h
32
src/nano.h
|
@ -128,11 +128,6 @@
|
||||||
#define getline ngetline
|
#define getline ngetline
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Assume ERR is defined as -1. To avoid duplicate case values when
|
|
||||||
* some key definitions are missing, we have to set all of these, and
|
|
||||||
* all of the special sentinel values below, to different negative
|
|
||||||
* values other than -1. */
|
|
||||||
|
|
||||||
#define VERMSG "GNU nano " VERSION
|
#define VERMSG "GNU nano " VERSION
|
||||||
|
|
||||||
/* If we aren't using ncurses, turn the mouse support off, as it's
|
/* If we aren't using ncurses, turn the mouse support off, as it's
|
||||||
|
@ -246,24 +241,28 @@ typedef struct rcoption {
|
||||||
|
|
||||||
#ifdef ENABLE_COLOR
|
#ifdef ENABLE_COLOR
|
||||||
typedef struct colortype {
|
typedef struct colortype {
|
||||||
int fg; /* fg color */
|
int fg; /* Foreground color. */
|
||||||
int bg; /* bg color */
|
int bg; /* Background color. */
|
||||||
int bright; /* Is this color A_BOLD? */
|
int bright; /* Is this color A_BOLD? */
|
||||||
int pairnum; /* Color pair number used for this fg/bg */
|
int pairnum; /* Color pair number used for this
|
||||||
regex_t start; /* Start (or all) of the regex string */
|
* foreground/background. */
|
||||||
regex_t *end; /* End of the regex string */
|
regex_t start; /* Start (or all) of the regex
|
||||||
|
* string. */
|
||||||
|
regex_t *end; /* End (if any) of the regex string. */
|
||||||
struct colortype *next;
|
struct colortype *next;
|
||||||
} colortype;
|
} colortype;
|
||||||
|
|
||||||
typedef struct exttype {
|
typedef struct exttype {
|
||||||
regex_t val; /* The extensions that match this syntax. */
|
regex_t val; /* The extensions that match this
|
||||||
|
* syntax. */
|
||||||
struct exttype *next;
|
struct exttype *next;
|
||||||
} exttype;
|
} exttype;
|
||||||
|
|
||||||
typedef struct syntaxtype {
|
typedef struct syntaxtype {
|
||||||
char *desc; /* Name of this syntax type */
|
char *desc; /* Name of this syntax type. */
|
||||||
exttype *extensions; /* List of extensions that this applies to */
|
exttype *extensions; /* List of extensions that this syntax
|
||||||
colortype *color; /* color struct for this syntax */
|
* applies to. */
|
||||||
|
colortype *color; /* Color struct for this syntax. */
|
||||||
struct syntaxtype *next;
|
struct syntaxtype *next;
|
||||||
} syntaxtype;
|
} syntaxtype;
|
||||||
#endif
|
#endif
|
||||||
|
@ -278,7 +277,7 @@ typedef struct historytype {
|
||||||
typedef struct historyheadtype {
|
typedef struct historyheadtype {
|
||||||
struct historytype *next; /* Keep *next and *prev members
|
struct historytype *next; /* Keep *next and *prev members
|
||||||
* together. */
|
* together. */
|
||||||
struct historytype *prev; /* And in same order as in
|
struct historytype *prev; /* And in the same order as in
|
||||||
* historytype. */
|
* historytype. */
|
||||||
struct historytype *tail;
|
struct historytype *tail;
|
||||||
struct historytype *current;
|
struct historytype *current;
|
||||||
|
@ -524,8 +523,7 @@ typedef struct historyheadtype {
|
||||||
/* Default width of a tab. */
|
/* Default width of a tab. */
|
||||||
#define WIDTH_OF_TAB 8
|
#define WIDTH_OF_TAB 8
|
||||||
|
|
||||||
/* Maximum number of search history strings saved, same value used for
|
/* Maximum number of search/replace history strings saved. */
|
||||||
* replace history. */
|
|
||||||
#define MAX_SEARCH_HISTORY 100
|
#define MAX_SEARCH_HISTORY 100
|
||||||
|
|
||||||
#endif /* !NANO_H */
|
#endif /* !NANO_H */
|
||||||
|
|
Loading…
Reference in New Issue