revert one of the previous changes; we don't really need a shortcut for

moving to the next search/replace history string, as we don't have one
for tab completion either


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2499 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
David Lawrence Ramsey 2005-05-03 20:57:13 +00:00
parent 0f83c89b09
commit 5e73eec3cc
2 changed files with 16 additions and 33 deletions

View File

@ -7,11 +7,10 @@ CVS code -
match the config.h #includes everywhere else. (DLR) match the config.h #includes everywhere else. (DLR)
- Change all hardcoded instances of 128 bytes to MAX_BUF_SIZE, - Change all hardcoded instances of 128 bytes to MAX_BUF_SIZE,
and #define MAX_BUF_SIZE as 128 in nano.h. (DLR) and #define MAX_BUF_SIZE as 128 in nano.h. (DLR)
- Use separate keys to go to the previous and next strings in - Display the key to go to the previous strings in the
the search/replace history, and display them as "^P" and "^N". search/replace history as "^P". This makes mouse clicks work
This makes mouse clicks work properly on them. Changes to properly on it. Changes to shortcut_init(), help_init(),
shortcut_init(), help_init(), nanogetstr(), and nanogetstr(), and do_statusbar_input(). (DLR)
do_statusbar_input(). (DLR)
- files.c: - files.c:
load_open_file() load_open_file()
- Remove an unneeded clearok(FALSE). (DLR) - Remove an unneeded clearok(FALSE). (DLR)

View File

@ -252,8 +252,7 @@ void shortcut_init(bool unjustify)
#ifdef HAVE_REGEX_H #ifdef HAVE_REGEX_H
const char *regexp_msg = N_("Regexp"); const char *regexp_msg = N_("Regexp");
#endif #endif
const char *prevhistory_msg = N_("PrevString"); const char *history_msg = N_("History");
const char *nexthistory_msg = N_("NextString");
#ifdef ENABLE_MULTIBUFFER #ifdef ENABLE_MULTIBUFFER
const char *new_buffer_msg = N_("New Buffer"); const char *new_buffer_msg = N_("New Buffer");
#endif #endif
@ -340,11 +339,9 @@ void shortcut_init(bool unjustify)
#ifdef HAVE_REGEX_H #ifdef HAVE_REGEX_H
const char *nano_regexp_msg = N_("Use regular expressions"); const char *nano_regexp_msg = N_("Use regular expressions");
#endif #endif
const char *nano_prevhistory_msg = const char *nano_history_msg =
N_("Edit the previous search/replace string"); N_("Edit the previous search/replace strings");
const char *nano_nexthistory_msg = #endif
N_("Edit the next search/replace string");
#endif /* !NANO_SMALL */
#ifndef DISABLE_BROWSER #ifndef DISABLE_BROWSER
const char *nano_tofiles_msg = N_("Go to file browser"); const char *nano_tofiles_msg = N_("Go to file browser");
@ -666,13 +663,8 @@ void shortcut_init(bool unjustify)
#endif #endif
/* Translators: try to keep this string under 10 characters long */ /* Translators: try to keep this string under 10 characters long */
sc_init_one(&whereis_list, NANO_PREVLINE_KEY, prevhistory_msg, sc_init_one(&whereis_list, NANO_PREVLINE_KEY, history_msg,
IFHELP(nano_prevhistory_msg, NANO_NO_KEY), NANO_NO_KEY, IFHELP(nano_history_msg, NANO_NO_KEY), NANO_NO_KEY,
NANO_NO_KEY, VIEW, NULL);
/* Translators: try to keep this string under 10 characters long */
sc_init_one(&whereis_list, NANO_NEXTLINE_KEY, nexthistory_msg,
IFHELP(nano_nexthistory_msg, NANO_NO_KEY), NANO_NO_KEY,
NANO_NO_KEY, VIEW, NULL); NANO_NO_KEY, VIEW, NULL);
/* Translators: try to keep this string under 10 characters long */ /* Translators: try to keep this string under 10 characters long */
@ -712,7 +704,7 @@ void shortcut_init(bool unjustify)
IFHELP(nano_lastline_msg, NANO_NO_KEY), NANO_LASTLINE_FKEY, IFHELP(nano_lastline_msg, NANO_NO_KEY), NANO_LASTLINE_FKEY,
NANO_NO_KEY, VIEW, do_last_line); NANO_NO_KEY, VIEW, do_last_line);
/* Translators: try to keep this string under 10 characters long */ /* Translators: try to keep this string under 12 characters long */
sc_init_one(&replace_list, NANO_TOOTHERSEARCH_KEY, N_("No Replace"), sc_init_one(&replace_list, NANO_TOOTHERSEARCH_KEY, N_("No Replace"),
IFHELP(nano_whereis_msg, NANO_NO_KEY), NANO_REPLACE_FKEY, IFHELP(nano_whereis_msg, NANO_NO_KEY), NANO_REPLACE_FKEY,
NANO_NO_KEY, VIEW, NULL); NANO_NO_KEY, VIEW, NULL);
@ -736,12 +728,8 @@ void shortcut_init(bool unjustify)
NANO_NO_KEY, VIEW, NULL); NANO_NO_KEY, VIEW, NULL);
#endif #endif
sc_init_one(&replace_list, NANO_PREVLINE_KEY, prevhistory_msg, sc_init_one(&replace_list, NANO_PREVLINE_KEY, history_msg,
IFHELP(nano_prevhistory_msg, NANO_NO_KEY), NANO_NO_KEY, IFHELP(nano_history_msg, NANO_NO_KEY), NANO_NO_KEY,
NANO_NO_KEY, VIEW, NULL);
sc_init_one(&replace_list, NANO_NEXTLINE_KEY, nexthistory_msg,
IFHELP(nano_nexthistory_msg, NANO_NO_KEY), NANO_NO_KEY,
NANO_NO_KEY, VIEW, NULL); NANO_NO_KEY, VIEW, NULL);
#endif /* !NANO_SMALL */ #endif /* !NANO_SMALL */
@ -770,12 +758,8 @@ void shortcut_init(bool unjustify)
NANO_NO_KEY, VIEW, do_last_line); NANO_NO_KEY, VIEW, do_last_line);
#ifndef NANO_SMALL #ifndef NANO_SMALL
sc_init_one(&replace_list_2, NANO_PREVLINE_KEY, prevhistory_msg, sc_init_one(&replace_list_2, NANO_PREVLINE_KEY, history_msg,
IFHELP(nano_prevhistory_msg, NANO_NO_KEY), NANO_NO_KEY, IFHELP(nano_history_msg, NANO_NO_KEY), NANO_NO_KEY,
NANO_NO_KEY, VIEW, NULL);
sc_init_one(&replace_list_2, NANO_NEXTLINE_KEY, nexthistory_msg,
IFHELP(nano_nexthistory_msg, NANO_NO_KEY), NANO_NO_KEY,
NANO_NO_KEY, VIEW, NULL); NANO_NO_KEY, VIEW, NULL);
#endif #endif
@ -1272,7 +1256,7 @@ void thanks_for_all_the_fish(void)
} }
#endif /* ENABLE_COLOR */ #endif /* ENABLE_COLOR */
#ifndef NANO_SMALL #ifndef NANO_SMALL
/* free history lists */ /* Free the history lists. */
free_history(&search_history); free_history(&search_history);
free_history(&replace_history); free_history(&replace_history);
#endif #endif