summaryrefslogtreecommitdiffstats
path: root/screen-write.c
diff options
context:
space:
mode:
authornicm <nicm>2017-06-12 10:57:35 +0000
committernicm <nicm>2017-06-12 10:57:35 +0000
commite028ab3476106dc66dc45943036add94173dedf6 (patch)
tree3eef1e7119130f7e665af979b57629681761d8e1 /screen-write.c
parent8037159f937def4bb71dbfb8d664a96de794014f (diff)
Need to flush out the linefeed after wrapper. GitHub issue 970.
Diffstat (limited to 'screen-write.c')
-rw-r--r--screen-write.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/screen-write.c b/screen-write.c
index 1f122482..6f0f6a22 100644
--- a/screen-write.c
+++ b/screen-write.c
@@ -1339,8 +1339,10 @@ screen_write_cell(struct screen_write_ctx *ctx, const struct grid_cell *gc)
/* Check this will fit on the current line and wrap if not. */
if ((s->mode & MODE_WRAP) && s->cx > sx - width) {
+ log_debug("%s: wrapped at %u,%u", __func__, s->cx, s->cy);
screen_write_linefeed(ctx, 1, 8);
s->cx = 0;
+ screen_write_collect_flush(ctx, 1);
}
/* Sanity check cursor position. */