commit 025553769ecf0befd6e9f41bdd83c6728af4de82
parent 7c2f53b2a9d71c09c2d210ce565ca2fdf8d31f0c
Author: Benno Schulenberg <bensberg@justemail.net>
Date: Thu, 18 Jun 2015 19:07:56 +0000
Deleting two unused things, and adding two comments.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5257 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Diffstat:
2 files changed, 5 insertions(+), 8 deletions(-)
diff --git a/ChangeLog b/ChangeLog
@@ -1,6 +1,7 @@
2015-06-17 Benno Schulenberg <bensberg@justemail.net>
* src/rcfile.c: Allow a tiny nano's ~/.nanorc to enable search and
position histories. Also sort the options more strictly.
+ * src/nano.h: Delete two unused things, and add two comments.
2015-06-17 Benno Schulenberg <bensberg@justemail.net>
* src/text.c (do_undo, add_undo): When undoing a Backspace at the tail
diff --git a/src/nano.h b/src/nano.h
@@ -192,6 +192,7 @@ typedef enum {
JOIN, PASTE, INSERT, ENTER, OTHER
} undo_type;
+/* Structure types. */
typedef struct color_pair {
int pairnum;
/* The color pair number used for this foreground color and
@@ -272,7 +273,7 @@ typedef struct lintstruct {
/* Previous error. */
} lintstruct;
-
+/* Flags that indicate how a multiline regex applies to a line. */
#define CNONE (1<<1)
/* Yay, regex doesn't apply to this line at all! */
#define CBEGINBEFORE (1<<2)
@@ -283,13 +284,9 @@ typedef struct lintstruct {
/* Whole line engulfed by the regex, start < me, end > me. */
#define CSTARTENDHERE (1<<5)
/* Regex starts and ends within this line. */
-#define CWTF (1<<6)
- /* Something else. */
-
#endif /* !DISABLE_COLOR */
-
-/* Structure types. */
+/* More structure types. */
typedef struct filestruct {
char *data;
/* The text of this line. */
@@ -572,8 +569,7 @@ enum
/* An imaginary key for when we get a SIGWINCH (window resize). */
#define KEY_WINCH -2
-/* Extra bits for the undo function. */
-#define UNdel_del (1<<0)
+/* Some extra bits for the undo function. */
#define UNdel_backspace (1<<1)
#define UNcut_marked_forward (1<<2)
#define UNcut_cutline (1<<3)