summaryrefslogtreecommitdiffstats
path: root/screen-write.c
diff options
context:
space:
mode:
authornicm <nicm>2017-02-16 12:43:08 +0000
committernicm <nicm>2017-02-16 12:43:08 +0000
commitc948c6b69764729859dcd091934f42abad2f73e6 (patch)
treedc17aa8c25209266deca20bad586131da3aedefe /screen-write.c
parentc889e113754f16de6d5d388c804864bdc2f2148a (diff)
Handle insert cells when cursor at edge of screen correctly, and do a
full flush before insert.
Diffstat (limited to 'screen-write.c')
-rw-r--r--screen-write.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/screen-write.c b/screen-write.c
index f630e0c8..f0ea4c14 100644
--- a/screen-write.c
+++ b/screen-write.c
@@ -1260,6 +1260,7 @@ screen_write_cell(struct screen_write_ctx *ctx, const struct grid_cell *gc)
/* Create space for character in insert mode. */
if (s->mode & MODE_INSERT) {
+ screen_write_collect_flush(ctx, 0);
ttyctx.num = width;
tty_write(tty_cmd_insertcharacter, &ttyctx);
}