From ceee039cfc819c8e09eebbfca192091b0cf8df75 Mon Sep 17 00:00:00 2001 From: dvolynets Date: Mon, 13 Jan 2020 12:15:27 +0300 Subject: [PATCH] added fix for multiline representing as one line --- src/editline.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/editline.c b/src/editline.c index 6b924fb..69cc9d1 100644 --- a/src/editline.c +++ b/src/editline.c @@ -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'); + } } }