Make PRI span completion only show spans that actually are PRIs

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2313 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
James Golovich
2004-03-03 03:54:25 +00:00
parent d260293f62
commit e67f8a50f9

View File

@@ -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++;
}