mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
It is silly for cmd_list_parse to return an integer error when it could
just return NULL.
This commit is contained in:
@ -85,7 +85,8 @@ control_callback(struct client *c, int closed, __unused void *data)
|
||||
break;
|
||||
}
|
||||
|
||||
if (cmd_string_parse(line, &cmdlist, NULL, 0, &cause) != 0) {
|
||||
cmdlist = cmd_string_parse(line, NULL, 0, &cause);
|
||||
if (cmdlist == NULL) {
|
||||
item = cmdq_get_callback(control_error, cause);
|
||||
cmdq_append(c, item);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user