mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-06-27 23:53:18 +02:00
do not require leading . for rl color prefix etension; fix for isearch in single-byte locales; next set of doc updates (SIGNALS); add warning for invalid job id; allow function names to be non-identifiers in posix mode
This commit is contained in:
@@ -73,7 +73,7 @@
|
||||
static bool is_colored (enum indicator_no type);
|
||||
static void restore_default_color (void);
|
||||
|
||||
#define RL_COLOR_PREFIX_EXTENSION ".readline-colored-completion-prefix"
|
||||
#define RL_COLOR_PREFIX_EXTENSION "readline-colored-completion-prefix"
|
||||
|
||||
COLOR_EXT_TYPE *_rl_color_ext_list = 0;
|
||||
|
||||
|
||||
@@ -478,7 +478,7 @@ common prefix of the set of possible completions using a different color.
|
||||
The color definitions are taken from the value of the \fBLS_COLORS\fP
|
||||
environment variable.
|
||||
If there is a color definition in \fB$LS_COLORS\fP for the custom suffix
|
||||
.Q .readline-colored-completion-prefix ,
|
||||
.Q readline-colored-completion-prefix ,
|
||||
\fBreadline\fP uses this color for
|
||||
the common prefix instead of its default.
|
||||
.TP
|
||||
|
||||
@@ -508,7 +508,7 @@ common prefix of the set of possible completions using a different color.
|
||||
The color definitions are taken from the value of the @env{LS_COLORS}
|
||||
environment variable.
|
||||
If there is a color definition in @env{LS_COLORS} for the custom suffix
|
||||
@samp{.readline-colored-completion-prefix}, Readline uses this color for
|
||||
@samp{readline-colored-completion-prefix}, Readline uses this color for
|
||||
the common prefix instead of its default.
|
||||
The default is @samp{off}.
|
||||
|
||||
|
||||
@@ -742,10 +742,11 @@ opcode_dispatch:
|
||||
/* Add character to search string and continue search. */
|
||||
default:
|
||||
#if defined (HANDLE_MULTIBYTE)
|
||||
wlen = (cxt->mb[0] == 0 || cxt->mb[1] == 0) ? 1 : RL_STRLEN (cxt->mb);
|
||||
#else
|
||||
wlen = 1;
|
||||
if (MB_CUR_MAX > 1 && rl_byte_oriented == 0)
|
||||
wlen = (cxt->mb[0] == 0 || cxt->mb[1] == 0) ? 1 : RL_STRLEN (cxt->mb);
|
||||
else
|
||||
#endif
|
||||
wlen = 1;
|
||||
if (cxt->search_string_index + wlen + 1 >= cxt->search_string_size)
|
||||
{
|
||||
cxt->search_string_size += 128; /* 128 much greater than MB_CUR_MAX */
|
||||
|
||||
Reference in New Issue
Block a user