summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/screen-write.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2020-05-16 15:27:08 +0000
committernicm <nicm@openbsd.org>2020-05-16 15:27:08 +0000
commit10b45510ea8f90ad519bcaacd3dcfa8716e8816f (patch)
tree770c0627e00d167c70a338566b2b3600fa9f3a73 /usr.bin/tmux/screen-write.c
parentAdd -e for new-session to set environment variables. (diff)
downloadwireguard-openbsd-10b45510ea8f90ad519bcaacd3dcfa8716e8816f.tar.xz
wireguard-openbsd-10b45510ea8f90ad519bcaacd3dcfa8716e8816f.zip
Rename and tidy some stuff in struct tty_ctx.
Diffstat (limited to 'usr.bin/tmux/screen-write.c')
-rw-r--r--usr.bin/tmux/screen-write.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/tmux/screen-write.c b/usr.bin/tmux/screen-write.c
index 7d487ecf625..8280f82adc2 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.176 2020/05/16 15:11:52 nicm Exp $ */
+/* $OpenBSD: screen-write.c,v 1.177 2020/05/16 15:27:08 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -112,6 +112,9 @@ screen_write_initctx(struct screen_write_ctx *ctx, struct tty_ctx *ttyctx,
ttyctx->wp = ctx->wp;
+ ttyctx->sx = screen_size_x(s);
+ ttyctx->sy = screen_size_y(s);
+
ttyctx->ocx = s->cx;
ttyctx->ocy = s->cy;