nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 107864058bfe6a696fc114de38dde15bfc20a2c2
parent 2cd72b6aa23e946ffbc1369626c59594a102b41f
Author: Chris Allegretta <chrisa@asty.org>
Date:   Wed, 24 Oct 2001 17:27:46 +0000

nano.h: Additional #define, SMALL_TOO to determine how long MAIN_LIST_LEN is.  We need this because of the find matching bracket code


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@879 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

Diffstat:
MChangeLog | 4++++
Mnano.h | 10++++++++--
2 files changed, 12 insertions(+), 2 deletions(-)

diff --git 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 @@ -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