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