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;
|
||||
|
||||
word = el_find_word();
|
||||
p = (char *)rl_complete((char *)word, &unique);
|
||||
p = rl_complete(word, &unique);
|
||||
if (word)
|
||||
free(word);
|
||||
if (p) {
|
||||
len = strlen((char *)p);
|
||||
len = strlen(p);
|
||||
word = p;
|
||||
new = q = malloc(sizeof(char) * (2 * len + 1));
|
||||
if (!new)
|
||||
return CSstay;
|
||||
while (*p) {
|
||||
if ((*p < ' ' || strchr(SEPS, (char) *p) != NULL)
|
||||
if ((*p < ' ' || strchr(SEPS, *p) != NULL)
|
||||
&& (!unique || p[1] != 0)) {
|
||||
*q++ = '\\';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user