Send keys when they are complete not before (!= vs ==).

This commit is contained in:
nicm 2020-04-14 13:22:05 +00:00
parent 63ec791854
commit 1ef9a69f4f

View File

@ -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);
}