mirror of
https://github.com/tmux/tmux.git
synced 2025-09-04 23:56:58 +00:00
Lose command index enum in favour of runtime-calculated index.
This commit is contained in:
21
tmux.h
21
tmux.h
@ -1,4 +1,4 @@
|
||||
/* $Id: tmux.h,v 1.49 2007-10-04 21:48:11 nicm Exp $ */
|
||||
/* $Id: tmux.h,v 1.50 2007-10-04 22:04:01 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -456,24 +456,6 @@ struct client_ctx {
|
||||
};
|
||||
|
||||
/* Key/command line command. */
|
||||
enum cmd_type {
|
||||
CMD_ATTACHSESSION,
|
||||
CMD_BINDKEY,
|
||||
CMD_DETACHSESSION,
|
||||
CMD_LASTWINDOW,
|
||||
CMD_LISTKEYS,
|
||||
CMD_LISTSESSIONS,
|
||||
CMD_LISTWINDOWS,
|
||||
CMD_NEWSESSION,
|
||||
CMD_NEWWINDOW,
|
||||
CMD_NEXTWINDOW,
|
||||
CMD_PREVIOUSWINDOW,
|
||||
CMD_RENAMEWINDOW,
|
||||
CMD_SELECTWINDOW,
|
||||
CMD_SETOPTION,
|
||||
CMD_UNBINDKEY,
|
||||
};
|
||||
|
||||
struct cmd_ctx {
|
||||
struct client *client;
|
||||
struct session *session;
|
||||
@ -486,7 +468,6 @@ struct cmd_ctx {
|
||||
};
|
||||
|
||||
struct cmd_entry {
|
||||
enum cmd_type type;
|
||||
const char *name;
|
||||
const char *alias;
|
||||
const char *usage;
|
||||
|
Reference in New Issue
Block a user