summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/input.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2019-03-14 09:53:52 +0000
committernicm <nicm@openbsd.org>2019-03-14 09:53:52 +0000
commita36fe1f8287a4105d1485f55e40cf34a37968161 (patch)
tree6a076ea080bd3e84496584a1af2e5e90b0f1f648 /usr.bin/tmux/input.c
parentDo not use const on struct window_pane, it causes more trouble than it (diff)
downloadwireguard-openbsd-a36fe1f8287a4105d1485f55e40cf34a37968161.tar.xz
wireguard-openbsd-a36fe1f8287a4105d1485f55e40cf34a37968161.zip
Add a wrapper (struct style) around styles rather than using the
grid_cell directly. There will be some non-cell members soon.
Diffstat (limited to 'usr.bin/tmux/input.c')
-rw-r--r--usr.bin/tmux/input.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/input.c b/usr.bin/tmux/input.c
index c64d40d4b6c..c6eb27756ca 100644
--- a/usr.bin/tmux/input.c
+++ b/usr.bin/tmux/input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: input.c,v 1.148 2019/03/14 06:33:43 nicm Exp $ */
+/* $OpenBSD: input.c,v 1.149 2019/03/14 09:53:52 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -2340,7 +2340,7 @@ input_osc_10(struct input_ctx *ictx, const char *p)
if (sscanf(p, "rgb:%2x/%2x/%2x", &r, &g, &b) != 3)
goto bad;
- wp->colgc.fg = colour_join_rgb(r, g, b);
+ wp->style.gc.fg = colour_join_rgb(r, g, b);
wp->flags |= PANE_REDRAW;
return;
@@ -2359,7 +2359,7 @@ input_osc_11(struct input_ctx *ictx, const char *p)
if (sscanf(p, "rgb:%2x/%2x/%2x", &r, &g, &b) != 3)
goto bad;
- wp->colgc.bg = colour_join_rgb(r, g, b);
+ wp->style.gc.bg = colour_join_rgb(r, g, b);
wp->flags |= PANE_REDRAW;
return;