Revert "exec: return NULL immediately if the task id is invalid"
This reverts commit dff1bf6f0f5521cf9e23e2b32a648512e13b6a72. (cherry picked from commit 08ebc99dea511cccba7d810c529e5218e5a2534c)
This commit is contained in:
parent
03d36f13af
commit
9db6255a84
@ -20,6 +20,7 @@ https://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes]
|
||||
|
||||
Bug fixes::
|
||||
|
||||
* exec: fix search of command by identifier
|
||||
* spell: fix refresh of bar item "spell_suggest" when the input becomes empty (issue #1586)
|
||||
* spell: fix crash with IRC color codes in command line (issue #1589)
|
||||
|
||||
|
@ -89,7 +89,7 @@ exec_search_by_id (const char *id)
|
||||
error = NULL;
|
||||
number = strtol (id, &error, 10);
|
||||
if (!error || error[0])
|
||||
return NULL;
|
||||
number = -1;
|
||||
|
||||
for (ptr_exec_cmd = exec_cmds; ptr_exec_cmd;
|
||||
ptr_exec_cmd = ptr_exec_cmd->next_cmd)
|
||||
|
Loading…
x
Reference in New Issue
Block a user