version 1.43, 2018/08/02 11:44:07 |
version 1.44, 2018/12/18 13:20:44 |
|
|
{ |
{ |
struct window_pane *wp = item->target.wp; |
struct window_pane *wp = item->target.wp; |
struct session *s = item->target.s; |
struct session *s = item->target.s; |
|
struct winlink *wl = item->target.wl; |
struct key_table *table; |
struct key_table *table; |
struct key_binding *bd; |
struct key_binding *bd; |
|
|
if (wp->mode == NULL || wp->mode->key_table == NULL) { |
if (wp->mode == NULL || wp->mode->key_table == NULL) { |
if (options_get_number(wp->window->options, "xterm-keys")) |
if (options_get_number(wp->window->options, "xterm-keys")) |
key |= KEYC_XTERM; |
key |= KEYC_XTERM; |
window_pane_key(wp, NULL, s, key, NULL); |
window_pane_key(wp, NULL, s, wl, key, NULL); |
return; |
return; |
} |
} |
table = key_bindings_get_table(wp->mode->key_table(wp), 1); |
table = key_bindings_get_table(wp->mode->key_table(wp), 1); |
|
|
struct client *c = cmd_find_client(item, NULL, 1); |
struct client *c = cmd_find_client(item, NULL, 1); |
struct window_pane *wp = item->target.wp; |
struct window_pane *wp = item->target.wp; |
struct session *s = item->target.s; |
struct session *s = item->target.s; |
|
struct winlink *wl = item->target.wl; |
struct mouse_event *m = &item->shared->mouse; |
struct mouse_event *m = &item->shared->mouse; |
struct utf8_data *ud, *uc; |
struct utf8_data *ud, *uc; |
wchar_t wc; |
wchar_t wc; |
|
|
return (CMD_RETURN_ERROR); |
return (CMD_RETURN_ERROR); |
} |
} |
if (!m->valid) |
if (!m->valid) |
wp->mode->command(wp, c, s, args, NULL); |
wp->mode->command(wp, c, s, wl, args, NULL); |
else |
else |
wp->mode->command(wp, c, s, args, m); |
wp->mode->command(wp, c, s, wl, args, m); |
return (CMD_RETURN_NORMAL); |
return (CMD_RETURN_NORMAL); |
} |
} |
|
|
|
|
cmdq_error(item, "no mouse target"); |
cmdq_error(item, "no mouse target"); |
return (CMD_RETURN_ERROR); |
return (CMD_RETURN_ERROR); |
} |
} |
window_pane_key(wp, NULL, s, m->key, m); |
window_pane_key(wp, NULL, s, wl, m->key, m); |
return (CMD_RETURN_NORMAL); |
return (CMD_RETURN_NORMAL); |
} |
} |
|
|