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!)
#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
#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