mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-16 00:20:49 +02:00
more documentation updates; fix two issues when displaying readline completions; fix another use-after-free error with readline undo lists
This commit is contained in:
+11
-1
@@ -1933,11 +1933,21 @@ bash_default_completion (const char *text, int start, int end, int qc, int compf
|
||||
strvec_dispose (matches);
|
||||
matches = (char **)0;
|
||||
}
|
||||
else if (matches && matches[1] && rl_completion_type == '!')
|
||||
else if (matches && matches[1] && (rl_completion_type == '!' || rl_completion_type == '@'))
|
||||
{
|
||||
rl_completion_suppress_append = 1;
|
||||
rl_filename_completion_desired = 0;
|
||||
}
|
||||
else if (matches && matches[1] && rl_completion_type == '?')
|
||||
{
|
||||
size_t ind;
|
||||
ind = (end > start) ? end - start - 1 : 0;
|
||||
if (text[ind] == '/')
|
||||
{
|
||||
rl_completion_suppress_append = 1;
|
||||
rl_filename_completion_desired = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return (matches);
|
||||
|
||||
Reference in New Issue
Block a user