Change so that an empty session name always means the current sessions

even if given with, for example, -t '', and explicitly forbid empty
session names and those containing a : when they are created.
This commit is contained in:
Nicholas Marriott
2011-04-06 21:51:31 +00:00
parent c8a14def9f
commit ec89eb9552
5 changed files with 29 additions and 5 deletions

1
tmux.h
View File

@ -1978,6 +1978,7 @@ struct session *session_create(const char *, const char *, const char *,
struct environ *, struct termios *, int, u_int, u_int,
char **);
void session_destroy(struct session *);
int session_check_name(const char *);
void session_update_activity(struct session *);
struct session *session_next_session(struct session *);
struct session *session_previous_session(struct session *);