forked from Mirrors/freeswitch
fs_cli: exclude last character in buffer on redisplay
This commit is contained in:
parent
682ed52cf7
commit
fe60938686
@ -587,7 +587,7 @@ static void redisplay(void)
|
|||||||
const LineInfo *lf = el_line(el);
|
const LineInfo *lf = el_line(el);
|
||||||
const char *c = lf->buffer;
|
const char *c = lf->buffer;
|
||||||
printf("%s",prompt_str);
|
printf("%s",prompt_str);
|
||||||
while (c <= lf->lastchar && *c) {
|
while (c < lf->lastchar && *c) {
|
||||||
putchar(*c);
|
putchar(*c);
|
||||||
c++;
|
c++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user