mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-11-26 01:58:02 +01: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:
1 parent
5b239ebbd2
commit
bb56d620e0
31 files changed
+38385
-2136
No files matched your search
+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