summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/cmd-send-keys.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2021-08-11 20:49:56 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2021-08-11 20:49:56 +0000
commita09f81c7ed125be3fd3535c31155c550973b3e55 (patch)
tree08cd9917d90f19f678922f3d0aa868a9b55389cf /usr.bin/tmux/cmd-send-keys.c
parent9dae6e90952aaca8ad34c186222d2ee05c4343e5 (diff)
Break the colour palette into a struct rather than just a single array
and use that to support the OSC palette-setting sequences in popups. Also add a pane-colours array option to specify the defaults. GitHub issue 2815.
Diffstat (limited to 'usr.bin/tmux/cmd-send-keys.c')
-rw-r--r--usr.bin/tmux/cmd-send-keys.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-send-keys.c b/usr.bin/tmux/cmd-send-keys.c
index f332e851b25..81a15b4aaf1 100644
--- a/usr.bin/tmux/cmd-send-keys.c
+++ b/usr.bin/tmux/cmd-send-keys.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-send-keys.c,v 1.65 2020/05/27 14:45:35 nicm Exp $ */
+/* $OpenBSD: cmd-send-keys.c,v 1.66 2021/08/11 20:49:55 nicm Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -197,8 +197,9 @@ cmd_send_keys_exec(struct cmd *self, struct cmdq_item *item)
}
if (args_has(args, 'R')) {
- window_pane_reset_palette(wp);
+ colour_palette_clear(&wp->palette);
input_reset(wp->ictx, 1);
+ wp->flags |= (PANE_STYLECHANGED|PANE_REDRAW);
}
for (; np != 0; np--) {