fs_cli: exclude last character in buffer on redisplay

This commit is contained in:
Travis Cross 2011-09-23 22:40:02 +00:00
parent 682ed52cf7
commit fe60938686

View File

@ -587,7 +587,7 @@ static void redisplay(void)
const LineInfo *lf = el_line(el);
const char *c = lf->buffer;
printf("%s",prompt_str);
while (c <= lf->lastchar && *c) {
while (c < lf->lastchar && *c) {
putchar(*c);
c++;
}