diff -u nano-silly/global.c nano-spell/global.c --- nano-silly/global.c Tue Feb 4 16:45:40 2003 +++ nano-spell/global.c Tue Feb 4 16:51:19 2003 @@ -105,7 +105,6 @@ shortcut *replace_list = NULL; shortcut *replace_list_2 = NULL; /* 2nd half of replace dialog */ shortcut *goto_list = NULL; -shortcut *gotodir_list = NULL; shortcut *writefile_list = NULL; shortcut *insertfile_list = NULL; #ifndef DISABLE_HELP @@ -119,7 +118,9 @@ #endif #ifndef DISABLE_BROWSER shortcut *browser_list = NULL; +shortcut *gotodir_list = NULL; #endif + #ifdef ENABLE_COLOR const colortype *colorstrings = NULL; syntaxtype *syntaxes = NULL; diff -u nano-silly/nano.c nano-spell/nano.c --- nano-silly/nano.c Tue Feb 4 16:45:51 2003 +++ nano-spell/nano.c Tue Feb 4 16:51:30 2003 @@ -341,6 +341,7 @@ "complete the directory name.\n\n The following function " "keys are available in Browser Go To Directory mode:\n\n"); #endif +#ifndef DISABLE_SPELLER else if (currshortcut == spell_list) ptr = _("Spell Check Help Text\n\n " "The spell checker checks the spelling of all text " @@ -350,6 +351,7 @@ "instance of the given misspelled word in the " "current file.\n\n The following other functions are " "available in Spell Check mode:\n\n"); +#endif #ifndef NANO_SMALL else if (currshortcut == extcmd_list) ptr = _("External Command Help Text\n\n " diff -u nano-silly/proto.h nano-spell/proto.h --- nano-silly/proto.h Tue Feb 4 16:45:43 2003 +++ nano-spell/proto.h Tue Feb 4 16:51:21 2003 @@ -86,15 +86,23 @@ extern shortcut *main_list, *whereis_list; extern shortcut *replace_list, *goto_list; extern shortcut *writefile_list, *insertfile_list; -extern shortcut *spell_list, *replace_list_2; +extern shortcut *replace_list_2; #ifndef NANO_SMALL extern shortcut *extcmd_list; #endif +#ifndef DISABLE_HELP extern shortcut *help_list; +#endif +#ifndef DISABLE_SPELLER +extern shortcut *spell_list; +#endif #ifndef DISABLE_BROWSER extern shortcut *browser_list, *gotodir_list; #endif + +#if !defined(DISABLE_BROWSER) || !defined(DISABLE_HELP) || (!defined(DISABLE_MOUSE) && defined(NCURSES_MOUSE_VERSION)) extern const shortcut *currshortcut; +#endif #ifdef HAVE_REGEX_H extern int use_regexp, regexp_compiled;