summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-send-keys.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2020-04-14 13:22:05 +0000
committernicm <nicm@openbsd.org>2020-04-14 13:22:05 +0000
commita432361de151d79d0dfd568941697f5e33311087 (patch)
tree5bd81886cf0e91b76d090a76f0b5603a90a379f0 /usr.bin/tmux/cmd-send-keys.c
parentadd the missing sentence "LibreSSL no longer provides any such (diff)
downloadwireguard-openbsd-a432361de151d79d0dfd568941697f5e33311087.tar.xz
wireguard-openbsd-a432361de151d79d0dfd568941697f5e33311087.zip
Send keys when they are complete not before (!= vs ==).
Diffstat (limited to 'usr.bin/tmux/cmd-send-keys.c')
-rw-r--r--usr.bin/tmux/cmd-send-keys.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-send-keys.c b/usr.bin/tmux/cmd-send-keys.c
index 6f9fa7bc5fe..5abf3502f6e 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.60 2020/04/13 20:51:57 nicm Exp $ */
+/* $OpenBSD: cmd-send-keys.c,v 1.61 2020/04/14 13:22:05 nicm Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -120,7 +120,7 @@ cmd_send_keys_inject_string(struct cmdq_item *item, struct cmdq_item *after,
if (literal) {
ud = utf8_fromcstr(s);
for (uc = ud; uc->size != 0; uc++) {
- if (utf8_combine(uc, &wc) == UTF8_DONE)
+ if (utf8_combine(uc, &wc) != UTF8_DONE)
continue;
after = cmd_send_keys_inject_key(item, after, wc);
}