version 1.39, 2020/03/12 13:19:20 |
version 1.40, 2020/03/20 17:59:39 |
|
|
.name = "copy-mode", |
.name = "copy-mode", |
.alias = NULL, |
.alias = NULL, |
|
|
.args = { "eHMt:u", 0, 0 }, |
.args = { "eHMt:uq", 0, 0 }, |
.usage = "[-eHMu] " CMD_TARGET_PANE_USAGE, |
.usage = "[-eHMuq] " CMD_TARGET_PANE_USAGE, |
|
|
.target = { 't', CMD_FIND_PANE, 0 }, |
.target = { 't', CMD_FIND_PANE, 0 }, |
|
|
|
|
struct client *c = item->client; |
struct client *c = item->client; |
struct session *s; |
struct session *s; |
struct window_pane *wp = item->target.wp; |
struct window_pane *wp = item->target.wp; |
|
|
|
if (args_has(args, 'q')) { |
|
window_pane_reset_mode_all(wp); |
|
return (CMD_RETURN_NORMAL); |
|
} |
|
|
if (args_has(args, 'M')) { |
if (args_has(args, 'M')) { |
if ((wp = cmd_mouse_pane(&shared->mouse, &s, NULL)) == NULL) |
if ((wp = cmd_mouse_pane(&shared->mouse, &s, NULL)) == NULL) |