mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
Formatting
This commit is contained in:
parent
fd15d30987
commit
464187491f
8 changed files with 64 additions and 62 deletions
|
@ -1682,7 +1682,8 @@ static bool handle_completions(const std::vector<completion_t> &comp)
|
|||
{
|
||||
/* Determine the shared prefix length. */
|
||||
size_t idx, max = mini(common_prefix.size(), el.completion.size());
|
||||
for (idx=0; idx < max; idx++) {
|
||||
for (idx=0; idx < max; idx++)
|
||||
{
|
||||
wchar_t ac = common_prefix.at(idx), bc = el.completion.at(idx);
|
||||
bool matches = (ac == bc);
|
||||
/* If we are replacing the token, allow case to vary */
|
||||
|
|
|
@ -249,7 +249,8 @@ static bool wildcard_complete_internal(const wcstring &orig,
|
|||
}
|
||||
|
||||
/* Maybe we satisfied the wildcard normally */
|
||||
if (! has_match) {
|
||||
if (! has_match)
|
||||
{
|
||||
bool file_has_leading_dot = (is_first && str[0] == L'.');
|
||||
if (at_end_of_wildcard && ! file_has_leading_dot)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue