summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/input.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2017-02-16 12:56:01 +0000
committernicm <nicm@openbsd.org>2017-02-16 12:56:01 +0000
commit62b14b228e98e231c49d970a5affd2f99ee55a0d (patch)
treea4264644770831e94e0b5db89b127c57271bb45b /usr.bin/tmux/input.c
parentHandle insert cells when cursor at edge of screen correctly, and do a (diff)
downloadwireguard-openbsd-62b14b228e98e231c49d970a5affd2f99ee55a0d.tar.xz
wireguard-openbsd-62b14b228e98e231c49d970a5affd2f99ee55a0d.zip
There are buggy terminals out there that do not move the cursor to 0,0
after CSR, so invalidate the cursor position rather than assuming 0,0.
Diffstat (limited to 'usr.bin/tmux/input.c')
-rw-r--r--usr.bin/tmux/input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/input.c b/usr.bin/tmux/input.c
index 5c50566e117..e8a1cb6df82 100644
--- a/usr.bin/tmux/input.c
+++ b/usr.bin/tmux/input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: input.c,v 1.115 2017/02/08 17:31:09 nicm Exp $ */
+/* $OpenBSD: input.c,v 1.116 2017/02/16 12:56:01 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -1389,7 +1389,7 @@ input_csi_dispatch(struct input_ctx *ictx)
break;
case INPUT_CSI_IL:
screen_write_insertline(sctx, input_get(ictx, 0, 1, 1),
- ictx->cell.cell.bg);
+ ictx->cell.cell.bg);
break;
case INPUT_CSI_RCP:
memcpy(&ictx->cell, &ictx->old_cell, sizeof ictx->cell);