Search prompt changes, bracketed modifiers and to search at the front
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@790 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
56214c6aef
commit
759d3523fc
|
@ -44,6 +44,11 @@ CVS code -
|
||||||
- corrected the Mouse Toggle section, noticed by Daniel Bonniot.
|
- corrected the Mouse Toggle section, noticed by Daniel Bonniot.
|
||||||
- rcfile.c:
|
- rcfile.c:
|
||||||
- NUM_RCOPTS fix (DLR).
|
- NUM_RCOPTS fix (DLR).
|
||||||
|
- search.c:
|
||||||
|
- Changed search prompt to "Search" followed by a list of
|
||||||
|
bracketed, free-standing modifiers that do not imply a grammar,
|
||||||
|
and the (to replace) string separately. Hopefully this resolves
|
||||||
|
the i18n problems that this provoked.
|
||||||
- winio.c:
|
- winio.c:
|
||||||
- Add David Lawrence Ramsey to credits.
|
- Add David Lawrence Ramsey to credits.
|
||||||
bottombars()
|
bottombars()
|
||||||
|
|
24
search.c
24
search.c
|
@ -74,7 +74,6 @@ int search_init(int replacing)
|
||||||
{
|
{
|
||||||
int i = 0;
|
int i = 0;
|
||||||
char *buf;
|
char *buf;
|
||||||
char *prompt;
|
|
||||||
static char *backupstring = NULL;
|
static char *backupstring = NULL;
|
||||||
#ifndef NANO_SMALL
|
#ifndef NANO_SMALL
|
||||||
int j;
|
int j;
|
||||||
|
@ -126,19 +125,24 @@ int search_init(int replacing)
|
||||||
else
|
else
|
||||||
strcpy(buf, "");
|
strcpy(buf, "");
|
||||||
|
|
||||||
/* Instead of having a million if statements here to determine
|
|
||||||
the prompt, we instead just have a hundred "? :" calls in
|
|
||||||
the statusq call. I hope no one ever has to modify this :-) */
|
|
||||||
prompt = "%s%s%s%s%s%s";
|
|
||||||
|
|
||||||
/* This is now one simple call. It just does a lot */
|
/* This is now one simple call. It just does a lot */
|
||||||
i = statusq(0, replacing ? replace_list : whereis_list,
|
i = statusq(0, replacing ? replace_list : whereis_list,
|
||||||
replacing ? REPLACE_LIST_LEN : WHEREIS_LIST_LEN, backupstring,
|
replacing ? REPLACE_LIST_LEN : WHEREIS_LIST_LEN, backupstring,
|
||||||
prompt,
|
"%s%s%s%s%s%s",
|
||||||
ISSET(CASE_SENSITIVE) ? _("Case Sensitive ") : "",
|
|
||||||
ISSET(USE_REGEXP) ? _("Regexp ") : "",
|
|
||||||
_("Search"),
|
_("Search"),
|
||||||
ISSET(REVERSE_SEARCH) ? _(" Backwards") : "",
|
|
||||||
|
/* This string is just a modifier for the search prompt,
|
||||||
|
no grammar is implied */
|
||||||
|
ISSET(CASE_SENSITIVE) ? _(" [Case Sensitive]") : "",
|
||||||
|
|
||||||
|
/* This string is just a modifier for the search prompt,
|
||||||
|
no grammar is implied */
|
||||||
|
ISSET(USE_REGEXP) ? _(" [Regexp]") : "",
|
||||||
|
|
||||||
|
/* This string is just a modifier for the search prompt,
|
||||||
|
no grammar is implied */
|
||||||
|
ISSET(REVERSE_SEARCH) ? _(" [Backwards]") : "",
|
||||||
|
|
||||||
replacing ? _(" (to replace)") : "",
|
replacing ? _(" (to replace)") : "",
|
||||||
buf);
|
buf);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue