Merge changes

This commit is contained in:
ache 1997-11-06 01:00:03 +00:00
parent 48d5f5c4e5
commit d8926c95c3
2 changed files with 4 additions and 5 deletions

View File

@ -796,7 +796,9 @@ make_quoted_replacement (match, mtype, qc)
/* If there is a single match, see if we need to quote it.
This also checks whether the common prefix of several
matches needs to be quoted. */
should_quote = rl_strpbrk (match, rl_filename_quote_characters) != 0;
should_quote = rl_filename_quote_characters
? (rl_strpbrk (match, rl_filename_quote_characters) != 0)
: 0;
do_replace = should_quote ? mtype : NO_MATCH;
/* Quote the replacement, since we found an embedded
@ -1544,9 +1546,6 @@ rl_strpbrk (string1, string2)
{
register char *scan;
if (string2 == NULL)
return ((char *)NULL);
for (; *string1; string1++)
{
for (scan = string2; *scan; scan++)

View File

@ -255,7 +255,7 @@ extern int rl_pending_input;
/* Non-zero if we called this function from _rl_dispatch(). It's present
so functions can find out whether they were called from a key binding
or directly from an application. */
int rl_dispatching;
extern int rl_dispatching;
/* The name of the terminal to use. */
extern char *rl_terminal_name;