mirror of
https://github.com/tmate-io/tmate.git
synced 2024-12-23 23:29:15 +01:00
Use KEYC_NONE constant instead of 0 on init.
This commit is contained in:
parent
a448524424
commit
6fab9a3e6f
@ -90,7 +90,7 @@ cmd_command_prompt_parse(struct cmd *self, int argc, char **argv, char **cause)
|
||||
struct cmd_command_prompt_data *data;
|
||||
int opt;
|
||||
|
||||
self->entry->init(self, 0);
|
||||
self->entry->init(self, KEYC_NONE);
|
||||
data = self->data;
|
||||
|
||||
while ((opt = getopt(argc, argv, "p:t:")) != -1) {
|
||||
|
@ -70,7 +70,7 @@ cmd_copy_buffer_parse(struct cmd *self, int argc, char **argv, char **cause)
|
||||
const char *errstr;
|
||||
int n, opt;
|
||||
|
||||
self->entry->init(self, 0);
|
||||
self->entry->init(self, KEYC_NONE);
|
||||
data = self->data;
|
||||
|
||||
while ((opt = getopt(argc, argv, "a:b:s:t:")) != -1) {
|
||||
|
@ -66,7 +66,7 @@ cmd_if_shell_parse(struct cmd *self, int argc, char **argv, char **cause)
|
||||
struct cmd_if_shell_data *data;
|
||||
int opt;
|
||||
|
||||
self->entry->init(self, 0);
|
||||
self->entry->init(self, KEYC_NONE);
|
||||
data = self->data;
|
||||
|
||||
while ((opt = getopt(argc, argv, "")) != -1) {
|
||||
|
@ -69,7 +69,7 @@ cmd_new_session_parse(struct cmd *self, int argc, char **argv, char **cause)
|
||||
struct cmd_new_session_data *data;
|
||||
int opt;
|
||||
|
||||
self->entry->init(self, 0);
|
||||
self->entry->init(self, KEYC_NONE);
|
||||
data = self->data;
|
||||
|
||||
while ((opt = getopt(argc, argv, "ds:n:")) != -1) {
|
||||
|
@ -70,7 +70,7 @@ cmd_new_window_parse(struct cmd *self, int argc, char **argv, char **cause)
|
||||
struct cmd_new_window_data *data;
|
||||
int opt;
|
||||
|
||||
self->entry->init(self, 0);
|
||||
self->entry->init(self, KEYC_NONE);
|
||||
data = self->data;
|
||||
|
||||
while ((opt = getopt(argc, argv, "dkt:n:")) != -1) {
|
||||
|
@ -66,7 +66,7 @@ cmd_set_password_parse(struct cmd *self, int argc, char **argv, char **cause)
|
||||
int opt;
|
||||
char *out;
|
||||
|
||||
self->entry->init(self, 0);
|
||||
self->entry->init(self, KEYC_NONE);
|
||||
data = self->data;
|
||||
|
||||
while ((opt = getopt(argc, argv, "c")) != -1) {
|
||||
|
@ -60,7 +60,7 @@ cmd_source_file_parse(struct cmd *self, int argc, char **argv, char **cause)
|
||||
struct cmd_source_file_data *data;
|
||||
int opt;
|
||||
|
||||
self->entry->init(self, 0);
|
||||
self->entry->init(self, KEYC_NONE);
|
||||
data = self->data;
|
||||
|
||||
while ((opt = getopt(argc, argv, "")) != -1) {
|
||||
|
@ -84,7 +84,7 @@ cmd_split_window_parse(struct cmd *self, int argc, char **argv, char **cause)
|
||||
int opt;
|
||||
const char *errstr;
|
||||
|
||||
self->entry->init(self, 0);
|
||||
self->entry->init(self, KEYC_NONE);
|
||||
data = self->data;
|
||||
|
||||
while ((opt = getopt(argc, argv, "dhl:p:t:v")) != -1) {
|
||||
|
Loading…
Reference in New Issue
Block a user