diff options
| author | 2017-01-07 15:28:13 +0000 | |
|---|---|---|
| committer | 2017-01-07 15:28:13 +0000 | |
| commit | e16c16982e9481fc6dce130c45ab1780a392bdd7 (patch) | |
| tree | 3f61c5ba44fc0732fbca89e3652017b23ab76bb4 /usr.bin/tmux/cmd-send-keys.c | |
| parent | Add and remove some blank lines, in order to make X509_verify_cert() (diff) | |
| download | wireguard-openbsd-e16c16982e9481fc6dce130c45ab1780a392bdd7.tar.xz wireguard-openbsd-e16c16982e9481fc6dce130c45ab1780a392bdd7.zip | |
Add support for the OSC 4 and OSC 104 palette setting escape sequences,
from S Gilles.
Diffstat (limited to 'usr.bin/tmux/cmd-send-keys.c')
| -rw-r--r-- | usr.bin/tmux/cmd-send-keys.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/usr.bin/tmux/cmd-send-keys.c b/usr.bin/tmux/cmd-send-keys.c index f5ed7b65a8d..636f4dd757e 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.36 2016/12/11 22:55:25 nicm Exp $ */ +/* $OpenBSD: cmd-send-keys.c,v 1.37 2017/01/07 15:28:13 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -112,8 +112,10 @@ cmd_send_keys_exec(struct cmd *self, struct cmdq_item *item) return (CMD_RETURN_NORMAL); } - if (args_has(args, 'R')) + if (args_has(args, 'R')) { + window_pane_reset_palette(wp); input_reset(wp, 1); + } for (; np != 0; np--) { for (i = 0; i < args->argc; i++) { @@ -128,8 +130,9 @@ cmd_send_keys_exec(struct cmd *self, struct cmdq_item *item) if (literal) { ud = utf8_fromcstr(args->argv[i]); for (uc = ud; uc->size != 0; uc++) { - if (utf8_combine(uc, &wc) == UTF8_DONE) - window_pane_key(wp, NULL, s, wc, NULL); + if (utf8_combine(uc, &wc) != UTF8_DONE) + continue; + window_pane_key(wp, NULL, s, wc, NULL); } free(ud); } |
