mirror of
https://github.com/troglobit/editline.git
synced 2025-05-06 04:21:24 +08:00
added fix for multiline representing as one line
This commit is contained in:
parent
02cccd1e87
commit
ceee039cfc
@ -216,8 +216,10 @@ static void tty_string(char *p)
|
||||
|
||||
while (*p) {
|
||||
tty_show(*p++);
|
||||
if ((i++) % tty_cols == 0)
|
||||
tty_put('\n');
|
||||
if ((i++) % tty_cols == 0) {
|
||||
tty_put(' ');
|
||||
tty_put('\b');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user