aboutsummaryrefslogtreecommitdiff
path: root/cmd-select-pane.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2019-03-14 00:02:37 +0000
committerThomas Adam <thomas@xteddy.org>2019-03-14 00:02:37 +0000
commit81b393a4931037e604975682a2706f4447f06475 (patch)
treeb06e3e3e13155c27643f88c0962113f8d04ad81b /cmd-select-pane.c
parent786f5e505eedca60e605275c189fc67474d0490c (diff)
parent5755bfc619d9d638e82b53afc91cf06096f4dfd9 (diff)
downloadrtmux-81b393a4931037e604975682a2706f4447f06475.tar.gz
rtmux-81b393a4931037e604975682a2706f4447f06475.tar.bz2
rtmux-81b393a4931037e604975682a2706f4447f06475.zip
Merge branch 'obsd-master'
Diffstat (limited to 'cmd-select-pane.c')
-rw-r--r--cmd-select-pane.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd-select-pane.c b/cmd-select-pane.c
index 90ca46ba..87156250 100644
--- a/cmd-select-pane.c
+++ b/cmd-select-pane.c
@@ -19,6 +19,7 @@
#include <sys/types.h>
#include <stdlib.h>
+#include <string.h>
#include "tmux.h"
@@ -143,6 +144,8 @@ cmd_select_pane_exec(struct cmd *self, struct cmdq_item *item)
if (args_has(self->args, 'P') || args_has(self->args, 'g')) {
if (args_has(args, 'P')) {
style = args_get(args, 'P');
+ memcpy(&wp->colgc, &grid_default_cell,
+ sizeof wp->colgc);
if (style_parse(&grid_default_cell, &wp->colgc,
style) == -1) {
cmdq_error(item, "bad style: %s", style);