Make PRI span completion only show spans that actually are PRIs
authorJames Golovich <james@gnuinter.net>
Wed, 3 Mar 2004 03:54:25 +0000 (03:54 +0000)
committerJames Golovich <james@gnuinter.net>
Wed, 3 Mar 2004 03:54:25 +0000 (03:54 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2313 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index aca181d..8b93e74 100755 (executable)
@@ -6761,7 +6761,7 @@ static char *complete_span(char *line, char *word, int pos, int state)
        int span=1;
        char tmp[50];
        while(span <= NUM_SPANS) {
-               if (span > state)
+               if (span > state && pris[span-1].pri)
                        break;
                span++;
        }