The branch, hooks has been updated
       via  215bb6fbfe78a481a003c966f0b8f2a4b37b2370 (commit)
      from  d60e4b1eaf027e9e5d824442b65e1b538ab16cd6 (commit)

- Log -----------------------------------------------------------------
commit 215bb6fbfe78a481a003c966f0b8f2a4b37b2370
Author: Thomas Adam <tho...@xteddy.org>
Commit: Thomas Adam <tho...@xteddy.org>

    Convert has-session to use prepare flags
---
 cmd-has-session.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/cmd-has-session.c b/cmd-has-session.c
index a873b20..a69d3d1 100644
--- a/cmd-has-session.c
+++ b/cmd-has-session.c
@@ -30,7 +30,7 @@ const struct cmd_entry cmd_has_session_entry = {
        "has-session", "has",
        "t:", 0, 0,
        CMD_TARGET_SESSION_USAGE,
-       0,
+       CMD_PREP_SESSION_T,
        cmd_has_session_exec
 };
 
@@ -39,7 +39,7 @@ cmd_has_session_exec(struct cmd *self, struct cmd_q *cmdq)
 {
        struct args     *args = self->args;
 
-       if (cmd_find_session(cmdq, args_get(args, 't'), 0) == NULL)
+       if (cmd_find_session(cmdq, cmdq->state.tflag.s, 0) == NULL)
                return (CMD_RETURN_ERROR);
 
        return (CMD_RETURN_NORMAL);


-----------------------------------------------------------------------

Summary of changes:
 cmd-has-session.c |    4 ++--
 1 files changed, 2 insertions(+), 2 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
tmux-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-cvs

Reply via email to