diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-19 19:35:16 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-19 19:35:16 +0000 |
commit | b474b62f4a076678653839da4c72075407d5430d (patch) | |
tree | 3ac0ff04c689b5d5a53bdf77aca20ab8861280d8 /pbx.c | |
parent | 52c9e41ded7768d4050c2500b2022f01c7c9fa98 (diff) |
Fix tab completion when you just do a plain tab without entering anything, and also fix show application tab completion. (issue #7089 reported by blitzrage)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@28792 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx.c')
-rw-r--r-- | pbx.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -2864,8 +2864,10 @@ static char *complete_show_application(const char *line, const char *word, int p /* return the n-th [partial] matching entry */ AST_LIST_LOCK(&apps); AST_LIST_TRAVERSE(&apps, a, list) { - if (!strncasecmp(word, a->name, wordlen) && ++which > state) + if (!strncasecmp(word, a->name, wordlen) && ++which > state) { ret = strdup(a->name); + break; + } } AST_LIST_UNLOCK(&apps); |