mirror of
https://github.com/tmux/tmux.git
synced 2024-12-14 10:58:48 +00:00
Merge branch 'obsd-master'
This commit is contained in:
commit
86159fca82
@ -118,9 +118,14 @@ cmd_send_keys_inject_string(struct cmdq_item *item, struct cmdq_item *after,
|
|||||||
if (literal) {
|
if (literal) {
|
||||||
ud = utf8_fromcstr(s);
|
ud = utf8_fromcstr(s);
|
||||||
for (loop = ud; loop->size != 0; loop++) {
|
for (loop = ud; loop->size != 0; loop++) {
|
||||||
if (utf8_from_data(loop, &uc) != UTF8_DONE)
|
if (loop->size == 1 && loop->data[0] <= 0x7f)
|
||||||
continue;
|
key = loop->data[0];
|
||||||
after = cmd_send_keys_inject_key(item, after, uc);
|
else {
|
||||||
|
if (utf8_from_data(loop, &uc) != UTF8_DONE)
|
||||||
|
continue;
|
||||||
|
key = uc;
|
||||||
|
}
|
||||||
|
after = cmd_send_keys_inject_key(item, after, key);
|
||||||
}
|
}
|
||||||
free(ud);
|
free(ud);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user