mirror of
https://github.com/troglobit/editline.git
synced 2025-05-06 12:31:45 +08:00
Minor cleanup of unnecessary explicit casts.
This commit is contained in:
parent
fc08d47bce
commit
d72069144e
@ -1329,17 +1329,17 @@ static el_status_t c_complete(void)
|
|||||||
return CSdispatch;
|
return CSdispatch;
|
||||||
|
|
||||||
word = el_find_word();
|
word = el_find_word();
|
||||||
p = (char *)rl_complete((char *)word, &unique);
|
p = rl_complete(word, &unique);
|
||||||
if (word)
|
if (word)
|
||||||
free(word);
|
free(word);
|
||||||
if (p) {
|
if (p) {
|
||||||
len = strlen((char *)p);
|
len = strlen(p);
|
||||||
word = p;
|
word = p;
|
||||||
new = q = malloc(sizeof(char) * (2 * len + 1));
|
new = q = malloc(sizeof(char) * (2 * len + 1));
|
||||||
if (!new)
|
if (!new)
|
||||||
return CSstay;
|
return CSstay;
|
||||||
while (*p) {
|
while (*p) {
|
||||||
if ((*p < ' ' || strchr(SEPS, (char) *p) != NULL)
|
if ((*p < ' ' || strchr(SEPS, *p) != NULL)
|
||||||
&& (!unique || p[1] != 0)) {
|
&& (!unique || p[1] != 0)) {
|
||||||
*q++ = '\\';
|
*q++ = '\\';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user