aboutsummaryrefslogtreecommitdiffhomepage
path: root/expand.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-04-21 15:49:38 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-04-21 15:49:45 -0700
commitd215e866623f7ec935eedfe0fc81e950b0d0381e (patch)
treec0c8e92176cf0f5892272a40779ca6a53bcc316e /expand.cpp
parent10962d7175c09b4f7e7110bf052b06aca0ac401f (diff)
Fix for issue where tab completing an empty string would produce no results
Diffstat (limited to 'expand.cpp')
-rw-r--r--expand.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/expand.cpp b/expand.cpp
index 69be2b03..8ff6de26 100644
--- a/expand.cpp
+++ b/expand.cpp
@@ -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));