Skip to content

Commit

Permalink
Merge pull request troglobit#38 from echoprotocol/ECHO-732
Browse files Browse the repository at this point in the history
added fix for multiline representing as one line
  • Loading branch information
troglobit authored Jan 13, 2020
2 parents 02cccd1 + ceee039 commit 8d5d04f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/editline.c
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
}
}

Expand Down

0 comments on commit 8d5d04f

Please sign in to comment.