mirror of
https://github.com/troglobit/editline.git
synced 2025-05-06 04:21:24 +08:00
Only display return from readline() when there's something to show.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
parent
979f05a5eb
commit
ee176c80d7
@ -149,6 +149,7 @@ int main(void)
|
|||||||
if (next)
|
if (next)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
if (*line != '\0')
|
||||||
printf("\t\t\t|%s|\n", line);
|
printf("\t\t\t|%s|\n", line);
|
||||||
free(line);
|
free(line);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user