diff options
author | nicm <nicm> | 2021-08-11 20:49:55 +0000 |
---|---|---|
committer | nicm <nicm> | 2021-08-11 20:49:55 +0000 |
commit | 7eea3d7ab850bb8fbeeccbb4b0fe84b9274965af (patch) | |
tree | 7967e985cb56c93a0fd80dfebe01079c4dbdd43e /cmd-send-keys.c | |
parent | 01fd4b997e3a0a74ea57d6830cf97f98ea2c2a7c (diff) | |
download | rtmux-7eea3d7ab850bb8fbeeccbb4b0fe84b9274965af.tar.gz rtmux-7eea3d7ab850bb8fbeeccbb4b0fe84b9274965af.tar.bz2 rtmux-7eea3d7ab850bb8fbeeccbb4b0fe84b9274965af.zip |
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 'cmd-send-keys.c')
-rw-r--r-- | cmd-send-keys.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd-send-keys.c b/cmd-send-keys.c index b362fab5..c51d413b 100644 --- a/cmd-send-keys.c +++ b/cmd-send-keys.c @@ -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--) { |