mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +00:00
Hide struct args behind a couple of accessor functions.
This commit is contained in:
@ -303,10 +303,10 @@ window_client_init(struct window_mode_entry *wme,
|
||||
data->key_format = xstrdup(WINDOW_CLIENT_DEFAULT_KEY_FORMAT);
|
||||
else
|
||||
data->key_format = xstrdup(args_get(args, 'K'));
|
||||
if (args == NULL || args->argc == 0)
|
||||
if (args == NULL || args_count(args) == 0)
|
||||
data->command = xstrdup(WINDOW_CLIENT_DEFAULT_COMMAND);
|
||||
else
|
||||
data->command = xstrdup(args->argv[0]);
|
||||
data->command = xstrdup(args_string(args, 0));
|
||||
|
||||
data->data = mode_tree_start(wp, args, window_client_build,
|
||||
window_client_draw, NULL, window_client_menu, NULL,
|
||||
|
Reference in New Issue
Block a user