diff options
author | 2013-10-27 13:37:14 -0700 | |
---|---|---|
committer | 2013-10-27 13:37:14 -0700 | |
commit | 964c7e6f3be262ac4c6b0285edcd4a685fb5bc97 (patch) | |
tree | eab4cd83357714a23ff86bfaff853929359f832d /expand.cpp | |
parent | 630b0515ad494225c8c8532670ffd3d1e2359140 (diff) | |
parent | cf766b55cca979745f6c218d78f9cdcc297b3f20 (diff) |
Merge branch 'master' into ast
Conflicts:
complete.cpp
Diffstat (limited to 'expand.cpp')
-rw-r--r-- | expand.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1752,15 +1752,15 @@ int expand_string(const wcstring &input, std::vector<completion_t> &output, expa remove_internal_separator(next_str, (EXPAND_SKIP_WILDCARDS & flags) ? true : false); const wchar_t *next = next_str.c_str(); - + const bool has_wildcard = wildcard_has(next, 1); - + if (has_wildcard && (flags & EXECUTABLES_ONLY)) { // Don't do wildcard expansion for executables. See #785. So do nothing here. } else if (((flags & ACCEPT_INCOMPLETE) && (!(flags & EXPAND_SKIP_WILDCARDS))) || - has_wildcard) + has_wildcard) { const wchar_t *start, *rest; |