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:
Chet Ramey
2024-12-13 09:51:46 -05:00
parent 5b239ebbd2
commit bb56d620e0
31 changed files with 38385 additions and 2136 deletions
+11 -1
View File
@@ -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);