aboutsummaryrefslogtreecommitdiffhomepage
path: root/expand.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-10-27 13:37:14 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-10-27 13:37:14 -0700
commit964c7e6f3be262ac4c6b0285edcd4a685fb5bc97 (patch)
treeeab4cd83357714a23ff86bfaff853929359f832d /expand.cpp
parent630b0515ad494225c8c8532670ffd3d1e2359140 (diff)
parentcf766b55cca979745f6c218d78f9cdcc297b3f20 (diff)
Merge branch 'master' into ast
Conflicts: complete.cpp
Diffstat (limited to 'expand.cpp')
-rw-r--r--expand.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/expand.cpp b/expand.cpp
index 45d29249..5b4a0a7f 100644
--- a/expand.cpp
+++ b/expand.cpp
@@ -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;