|
Lines 82-88
Link Here
|
| 82 |
int list; |
82 |
int list; |
| 83 |
StringList *words; |
83 |
StringList *words; |
| 84 |
{ |
84 |
{ |
| 85 |
char insertstr[MAXPATHLEN]; |
85 |
char insertstr[2*MAXPATHLEN]; |
| 86 |
char *lastmatch; |
86 |
char *lastmatch; |
| 87 |
int i, j; |
87 |
int i, j; |
| 88 |
size_t matchlen, wordlen; |
88 |
size_t matchlen, wordlen; |
|
Lines 92-98
Link Here
|
| 92 |
return (CC_ERROR); /* no choices available */ |
92 |
return (CC_ERROR); /* no choices available */ |
| 93 |
|
93 |
|
| 94 |
if (words->sl_cur == 1) { /* only once choice available */ |
94 |
if (words->sl_cur == 1) { /* only once choice available */ |
| 95 |
(void)strcpy(insertstr, words->sl_str[0]); |
95 |
for (i=0,j=0;i<strlen(words->sl_str[0]);i++,j++){ |
|
|
96 |
if (isspace(words->sl_str[0][i])) |
| 97 |
insertstr[j++]='\\'; |
| 98 |
insertstr[j]=words->sl_str[0][i]; |
| 99 |
}; |
| 100 |
insertstr[j]=0; |
| 96 |
if (el_insertstr(el, insertstr + wordlen) == -1) |
101 |
if (el_insertstr(el, insertstr + wordlen) == -1) |
| 97 |
return (CC_ERROR); |
102 |
return (CC_ERROR); |
| 98 |
else |
103 |
else |