aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2017-06-12 14:01:14 +0100
committerThomas Adam <thomas@xteddy.org>2017-06-12 14:01:14 +0100
commita073d11c3e05af2b691e89aae1101f1a0904f9b3 (patch)
tree3a0ae1c3a1efae6fe6b7f9f3e6e459758b675d68
parent5362f956f075c668132ab4e0e08658987a930422 (diff)
parente028ab3476106dc66dc45943036add94173dedf6 (diff)
downloadrtmux-a073d11c3e05af2b691e89aae1101f1a0904f9b3.tar.gz
rtmux-a073d11c3e05af2b691e89aae1101f1a0904f9b3.tar.bz2
rtmux-a073d11c3e05af2b691e89aae1101f1a0904f9b3.zip
Merge branch 'obsd-master'
-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. */