mirror of
https://github.com/tmux/tmux.git
synced 2025-09-03 06:17:04 +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:
@ -255,7 +255,8 @@ window_choose_data_run(struct window_choose_data *cdata)
|
||||
if (cdata->command == NULL)
|
||||
return;
|
||||
|
||||
if (cmd_string_parse(cdata->command, &cmdlist, NULL, 0, &cause) != 0) {
|
||||
cmdlist = cmd_string_parse(cdata->command, NULL, 0, &cause);
|
||||
if (cmdlist == NULL) {
|
||||
if (cause != NULL) {
|
||||
*cause = toupper((u_char) *cause);
|
||||
status_message_set(cdata->start_client, "%s", cause);
|
||||
|
Reference in New Issue
Block a user