diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2013-04-21 15:49:38 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2013-04-21 15:49:45 -0700 |
commit | d215e866623f7ec935eedfe0fc81e950b0d0381e (patch) | |
tree | c0c8e92176cf0f5892272a40779ca6a53bcc316e /expand.cpp | |
parent | 10962d7175c09b4f7e7110bf052b06aca0ac401f (diff) |
Fix for issue where tab completing an empty string would produce no results
Diffstat (limited to 'expand.cpp')
-rw-r--r-- | expand.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
@@ -1613,17 +1613,6 @@ int expand_string(const wcstring &input, std::vector<completion_t> &output, expa size_t i; int res = EXPAND_OK; - /* Make the empty string handling behavior explicit. It's a little weird, but expand_one depends on this. */ - if (input.empty()) - { - /* Return OK. But only append a completion if ACCEPT_INCOMPLETE is not set. */ - if (! (flags & ACCEPT_INCOMPLETE)) - { - output.push_back(completion_t(input)); - } - return EXPAND_OK; - } - if ((!(flags & ACCEPT_INCOMPLETE)) && expand_is_clean(input.c_str())) { output.push_back(completion_t(input)); |