aboutsummaryrefslogtreecommitdiff
path: root/cmd-send-keys.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2017-01-07 16:01:17 +0000
committerThomas Adam <thomas@xteddy.org>2017-01-07 16:01:17 +0000
commit29e64a8c648eaf6e1bebf6018066991e032756ab (patch)
tree441b101753a93a27aa82e5713bd1af4a27d4572f /cmd-send-keys.c
parenta3428487a787c9ab43cd628338dcc290499891ae (diff)
parent314e933914de4096c40e623c793049d26484d53a (diff)
downloadrtmux-29e64a8c648eaf6e1bebf6018066991e032756ab.tar.gz
rtmux-29e64a8c648eaf6e1bebf6018066991e032756ab.tar.bz2
rtmux-29e64a8c648eaf6e1bebf6018066991e032756ab.zip
Merge branch 'obsd-master'
Diffstat (limited to 'cmd-send-keys.c')
-rw-r--r--cmd-send-keys.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/cmd-send-keys.c b/cmd-send-keys.c
index e660cfb3..ae861894 100644
--- a/cmd-send-keys.c
+++ b/cmd-send-keys.c
@@ -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);
}