diff options
author | James Booth <boothj5@gmail.com> | 2016-04-27 21:52:58 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2016-04-27 21:52:58 +0100 |
commit | df30d4ba52efd31f3d559912e8c5c26d5ecd685c (patch) | |
tree | 3155a90597984fb94b8a80387324cb83fac1c257 /src | |
parent | 5687c3e419e88687a97b5bfa728ffe92bf8d4e98 (diff) | |
download | profani-tty-df30d4ba52efd31f3d559912e8c5c26d5ecd685c.tar.gz |
Check first entry in command sub_funcs
Diffstat (limited to 'src')
-rw-r--r-- | src/command/command.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command/command.c b/src/command/command.c index 906f2708..5895ad9d 100644 --- a/src/command/command.c +++ b/src/command/command.c @@ -3288,7 +3288,7 @@ _cmd_execute(ProfWin *window, const char *const command, const char *const inp) ui_invalid_command_usage(cmd->cmd, cmd->setting_func); return TRUE; } - if (args[0] && cmd->sub_funcs) { + if (args[0] && cmd->sub_funcs[0][0]) { int i = 0; while (cmd->sub_funcs[i][0]) { if (g_strcmp0(args[0], (char*)cmd->sub_funcs[i][0]) == 0) { |