The branch, hooks has been updated
via a17138cf23499dd8f4d5cf14a3ca048666097d85 (commit)
via 785003ec0ff4339b2bd9af7e6b214d088ab464fa (commit)
from 215bb6fbfe78a481a003c966f0b8f2a4b37b2370 (commit)
- Log -----------------------------------------------------------------
commit a17138cf23499dd8f4d5cf14a3ca048666097d85
Merge: 785003e 215bb6f
Author: Nicholas Marriott <[email protected]>
Commit: Nicholas Marriott <[email protected]>
Merge branch 'hooks' of ssh://git.code.sf.net/p/tmux/tmux-code into hooks
cmd-has-session.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
commit 785003ec0ff4339b2bd9af7e6b214d088ab464fa
Author: Nicholas Marriott <[email protected]>
Commit: Nicholas Marriott <[email protected]>
Convert send-keys to prep flags.
---
cmd-send-keys.c | 11 ++++-------
1 files changed, 4 insertions(+), 7 deletions(-)
diff --git a/cmd-send-keys.c b/cmd-send-keys.c
index 7a4d97d..b5f3293 100644
--- a/cmd-send-keys.c
+++ b/cmd-send-keys.c
@@ -33,7 +33,7 @@ const struct cmd_entry cmd_send_keys_entry = {
"send-keys", "send",
"lRt:", 0, -1,
"[-lR] " CMD_TARGET_PANE_USAGE " key ...",
- 0,
+ CMD_PREP_PANE_T,
cmd_send_keys_exec
};
@@ -41,7 +41,7 @@ const struct cmd_entry cmd_send_prefix_entry = {
"send-prefix", NULL,
"2t:", 0, 0,
"[-2] " CMD_TARGET_PANE_USAGE,
- 0,
+ CMD_PREP_PANE_T,
cmd_send_keys_exec
};
@@ -49,15 +49,12 @@ enum cmd_retval
cmd_send_keys_exec(struct cmd *self, struct cmd_q *cmdq)
{
struct args *args = self->args;
- struct window_pane *wp;
- struct session *s;
+ struct window_pane *wp = cmdq->state.tflag.wp;
+ struct session *s = cmdq->state.tflag.s;
struct input_ctx *ictx;
const u_char *str;
int i, key;
- if (cmd_find_pane(cmdq, args_get(args, 't'), &s, &wp) == NULL)
- return (CMD_RETURN_ERROR);
-
if (self->entry == &cmd_send_prefix_entry) {
if (args_has(args, '2'))
key = options_get_number(&s->options, "prefix2");
-----------------------------------------------------------------------
Summary of changes:
cmd-send-keys.c | 11 ++++-------
1 files changed, 4 insertions(+), 7 deletions(-)
hooks/post-receive
--
tmux
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
tmux-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-cvs