The branch, hooks has been updated
       via  8b8df29509224a5200c5bbfa3f4521faae3f1b49 (commit)
      from  b83007e69e16111f1a6f5711b15412655e859125 (commit)

- Log -----------------------------------------------------------------
commit 8b8df29509224a5200c5bbfa3f4521faae3f1b49
Author: Thomas Adam <tho...@xteddy.org>
Commit: Thomas Adam <tho...@xteddy.org>

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

diff --git a/cmd-list-clients.c b/cmd-list-clients.c
index 292be72..e71acb1 100644
--- a/cmd-list-clients.c
+++ b/cmd-list-clients.c
@@ -39,7 +39,7 @@ const struct cmd_entry cmd_list_clients_entry = {
        "list-clients", "lsc",
        "F:t:", 0, 0,
        "[-F format] " CMD_TARGET_SESSION_USAGE,
-       CMD_READONLY,
+       CMD_READONLY|CMD_PREP_SESSION_T,
        cmd_list_clients_exec
 };
 
@@ -55,9 +55,7 @@ cmd_list_clients_exec(struct cmd *self, struct cmd_q *cmdq)
        char                    *line;
 
        if (args_has(args, 't')) {
-               s = cmd_find_session(cmdq, args_get(args, 't'), 0);
-               if (s == NULL)
-                       return (CMD_RETURN_ERROR);
+               s = cmdq->state.tflag.s;
        } else
                s = NULL;
 


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

Summary of changes:
 cmd-list-clients.c |    6 ++----
 1 files changed, 2 insertions(+), 4 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