=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/cmd-send-keys.c,v retrieving revision 1.36 retrieving revision 1.37 diff -u -r1.36 -r1.37 --- src/usr.bin/tmux/cmd-send-keys.c 2016/12/11 22:55:25 1.36 +++ src/usr.bin/tmux/cmd-send-keys.c 2017/01/07 15:28:13 1.37 @@ -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 @@ -112,8 +112,10 @@ 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 @@ 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); }