diff options
author | Joshua Colp <jcolp@digium.com> | 2006-05-19 19:35:16 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2006-05-19 19:35:16 +0000 |
commit | f6107d6826294d7a49d6fea176b37e3cc8c930e0 (patch) | |
tree | 3ac0ff04c689b5d5a53bdf77aca20ab8861280d8 /pbx.c | |
parent | c91382a0a0a09a84ef20af0041e9bd241f6c2647 (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: https://origsvn.digium.com/svn/asterisk/trunk@28792 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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); |