summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/screen-write.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2017-02-16 12:43:08 +0000
committernicm <nicm@openbsd.org>2017-02-16 12:43:08 +0000
commit5de8917879a6558a918459d34b29ee3f1773af4d (patch)
treeebf91a0a062806c46dcd5622812517cc753ab2e1 /usr.bin/tmux/screen-write.c
parentMerge clear-history into capture-pane. (diff)
downloadwireguard-openbsd-5de8917879a6558a918459d34b29ee3f1773af4d.tar.xz
wireguard-openbsd-5de8917879a6558a918459d34b29ee3f1773af4d.zip
Handle insert cells when cursor at edge of screen correctly, and do a
full flush before insert.
Diffstat (limited to 'usr.bin/tmux/screen-write.c')
-rw-r--r--usr.bin/tmux/screen-write.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/screen-write.c b/usr.bin/tmux/screen-write.c
index 3ec61426cb3..bb9f1b71a07 100644
--- a/usr.bin/tmux/screen-write.c
+++ b/usr.bin/tmux/screen-write.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: screen-write.c,v 1.112 2017/02/09 10:09:14 nicm Exp $ */
+/* $OpenBSD: screen-write.c,v 1.113 2017/02/16 12:43:08 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -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);
}