disable "Where Is Next" in tiny mode

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1727 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
David Lawrence Ramsey 2004-05-05 21:36:50 +00:00
parent a849ab12ea
commit 5aa39834aa
4 changed files with 8 additions and 1 deletions

View File

@ -33,6 +33,7 @@ CVS code -
instead of inside the disabled functions. (David Benbennick)
- Clarifications to comments explaining exactly what control
characters and escape sequences are supported. (DLR)
- Disable "Where Is Next" in tiny mode. (DLR)
- files.c:
add_open_file()
- Rearrange the NANO_SMALL #ifdef so that the code to set the

View File

@ -622,7 +622,8 @@ void shortcut_init(int unjustify)
NANO_OPENNEXT_ALTKEY, VIEW, open_nextfile_void);
#endif
#if !defined(NANO_SMALL) && defined(HAVE_REGEX_H)
#ifndef NANO_SMALL
#ifdef HAVE_REGEX_H
sc_init_one(&main_list, NANO_NO_KEY, _("Find Other Bracket"),
IFHELP(nano_bracket_msg, NANO_BRACKET_KEY), NANO_NO_KEY,
NANO_NO_KEY, VIEW, do_find_bracket);
@ -631,6 +632,7 @@ void shortcut_init(int unjustify)
sc_init_one(&main_list, NANO_NO_KEY, _("Where Is Next"),
IFHELP(nano_whereis_next_msg, NANO_WHEREIS_NEXT_KEY),
NANO_NO_KEY, NANO_NO_KEY, VIEW, do_research);
#endif
free_shortcutage(&whereis_list);

View File

@ -372,7 +372,9 @@ int is_whole_word(int curr_pos, const char *datastr, const char
int findnextstr(int can_display_wrap, int wholeword, const filestruct
*begin, size_t beginx, const char *needle, int no_sameline);
int do_search(void);
#ifndef NANO_SMALL
int do_research(void);
#endif
void replace_abort(void);
#ifdef HAVE_REGEX_H
int replace_regexp(char *string, int create_flag);

View File

@ -420,6 +420,7 @@ int do_search(void)
return 1;
}
#ifndef NANO_SMALL
/* Search for the next string without prompting. */
int do_research(void)
{
@ -471,6 +472,7 @@ int do_research(void)
return 1;
}
#endif
void replace_abort(void)
{