diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-02-13 22:37:09 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-02-13 22:37:09 -0800 |
commit | caf7a93382ff833417625ce36dcc62844a5d78bf (patch) | |
tree | 14da728e5b18a2998e15296c3660ead884856b6e /wildcard.cpp | |
parent | afcda2f724caad73fae898f5fceef9adf0777978 (diff) |
Fix for busted completions (tab completion of directories was failing)
Diffstat (limited to 'wildcard.cpp')
-rw-r--r-- | wildcard.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wildcard.cpp b/wildcard.cpp index 9f8bfc25..e8cd03eb 100644 --- a/wildcard.cpp +++ b/wildcard.cpp @@ -822,7 +822,7 @@ static int wildcard_expand_internal( const wchar_t *wc, { res = 1; completion_t data_to_push(base_dir); - if ( std::find( out.begin(), out.end(), data_to_push ) != out.end() ){ + if (std::find( out.begin(), out.end(), data_to_push ) == out.end()) { out.push_back( data_to_push); } } |