diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-09-27 09:52:03 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-09-27 09:52:03 +0000 |
commit | 22990a6595fdff840010aa6df9a60ada61331b5e (patch) | |
tree | 48fa49a39ca8ba91652d9e5bbdcc7a942462c183 /op-list.c | |
parent | 3fa8f1636486420b9f27b129dbd0f36015d4c24b (diff) | |
download | rtmux-22990a6595fdff840010aa6df9a60ada61331b5e.tar.gz rtmux-22990a6595fdff840010aa6df9a60ada61331b5e.tar.bz2 rtmux-22990a6595fdff840010aa6df9a60ada61331b5e.zip |
New session selection rules:
- find by name if given
- otherwise try current index from $TMUX
- otherwise if only one session, use it
- otherwise error
Diffstat (limited to 'op-list.c')
-rw-r--r-- | op-list.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: op-list.c,v 1.3 2007-09-26 19:38:42 nicm Exp $ */ +/* $Id: op-list.c,v 1.4 2007-09-27 09:52:03 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -63,7 +63,7 @@ op_list(char *path, int argc, char **argv) if (*name == '\0') client_write_server(&cctx, MSG_SESSIONS, &sdata, sizeof sdata); else { - strlcpy(wdata.name, name, sizeof wdata.name); + client_fill_sessid(&wdata.sid, name); client_write_server(&cctx, MSG_WINDOWS, &wdata, sizeof wdata); } |