Skip to content

Commit 7cc379e

Browse files
committed
Keep rest of line on newline after carriage-return in apty
1 parent a8a5901 commit 7cc379e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bin/apty.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ void send_(struct ptybuf *buf) {
3333
vec_push(&cmd, avimbuf);
3434
vec_push(&cmd, "-2");
3535
vec_push(&cmd, "-1");
36-
size_t bol = 0, eol = 0, len;
36+
size_t bol = 0, eol = buf->i, len;
3737
size_t c = buf->c, i = buf->i;
3838
size_t n = vec_len(&buf->d);
3939
vec_push(&buf->d, '\0');

0 commit comments

Comments
 (0)