diff --git a/ChangeLog b/ChangeLog index bfd03f2b744ecaf9c876b10f91b3db2e97a5b1c3..ac47c43687e2e1e06b721091c01f637bfa432273 100644 --- a/ChangeLog +++ b/ChangeLog @@ -36,6 +36,10 @@ CVS code - goofy logic setting x pos to value of last line when hitting the beginning of first line, prog should simply abort. Added the #ifdefs around the code in main(). +- nano.h: + - Additional #define, SMALL_TOO to determine how long + MAIN_LIST_LEN is. We need this because of the find matching + bracket code. main() - Moved #ifndef NANO_SMALL down past the case 0: line so control-space doesn't insert a \0 (ack!) diff --git a/nano.h b/nano.h index cfc3077709dd29e882c6b644b5869702d17bf6a5..0b25827797b75dbac9ae8d121842a8322cfd56c8 100644 --- a/nano.h +++ b/nano.h @@ -287,9 +287,15 @@ know what you're doing */ #ifndef HAVE_REGEX_H #define NO_REGEX 1 +#ifdef NANO_SMALL +#define SMALL_TOO 1 +#else +#define SMALL_TOO 0 +#endif /* NANO_SMALL */ #else #define NO_REGEX 0 -#endif +#define SMALL_TOO 0 +#endif /* HAVE_REGEX_H */ #ifdef DISABLE_BROWSER #define NO_BROWSER 1 @@ -319,7 +325,7 @@ know what you're doing */ #define WRITEFILE_LIST_LEN (4 - NO_BROWSER) #define INSERTFILE_LIST_LEN (3 - NO_BROWSER) #define BROWSER_LIST_LEN 5 -#define MAIN_LIST_LEN (27 - NO_REGEX) +#define MAIN_LIST_LEN (27 - NO_REGEX - SMALL_TOO) #define MAIN_VISIBLE 12 #define REPLACE_LIST_2_LEN 4 #define GOTO_LIST_LEN 4