summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2015-07-13 18:45:18 +0000
committernicm <nicm@openbsd.org>2015-07-13 18:45:18 +0000
commitc971e5c93a3f9a7a926beb08dc3521a97c2db6b0 (patch)
tree5ba58a26b13e8cb5003241d3463584f88f3b0ffb
parentIgnore environment variables that are too long to send to the server. (diff)
downloadwireguard-openbsd-c971e5c93a3f9a7a926beb08dc3521a97c2db6b0.tar.xz
wireguard-openbsd-c971e5c93a3f9a7a926beb08dc3521a97c2db6b0.zip
Reset G0/G1 state when resetting everything else with send-keys -R.
-rw-r--r--usr.bin/tmux/input.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/usr.bin/tmux/input.c b/usr.bin/tmux/input.c
index 3bc680667ad..39f85c632a0 100644
--- a/usr.bin/tmux/input.c
+++ b/usr.bin/tmux/input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: input.c,v 1.79 2015/06/15 10:58:01 nicm Exp $ */
+/* $OpenBSD: input.c,v 1.80 2015/07/13 18:45:18 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -801,10 +801,7 @@ input_reset(struct window_pane *wp)
{
struct input_ctx *ictx = wp->ictx;
- memcpy(&ictx->cell, &grid_default_cell, sizeof ictx->cell);
- memcpy(&ictx->old_cell, &ictx->cell, sizeof ictx->old_cell);
- ictx->old_cx = 0;
- ictx->old_cy = 0;
+ input_reset_cell(ictx);
if (wp->mode == NULL)
screen_write_start(&ictx->ctx, wp, &wp->base);