mirror of
https://github.com/weechat/weechat.git
synced 2026-06-25 04:16:38 +02:00
api: return integer in function gui_completion_search (issue #1484)
This commit is contained in:
@@ -4015,22 +4015,22 @@ API_FUNC(completion_new)
|
||||
|
||||
API_FUNC(completion_search)
|
||||
{
|
||||
int position, direction;
|
||||
int position, direction, rc;
|
||||
|
||||
API_INIT_FUNC(1, "completion_search", "ssii", API_RETURN_ERROR);
|
||||
API_INIT_FUNC(1, "completion_search", "ssii", API_RETURN_INT(0));
|
||||
|
||||
v8::String::Utf8Value completion(args[0]);
|
||||
v8::String::Utf8Value data(args[1]);
|
||||
position = args[2]->IntegerValue();
|
||||
direction = args[3]->IntegerValue();
|
||||
|
||||
weechat_completion_search (
|
||||
rc = weechat_completion_search (
|
||||
(struct t_gui_completion *)API_STR2PTR(*completion),
|
||||
(const char *)(*data),
|
||||
position,
|
||||
direction);
|
||||
|
||||
API_RETURN_OK;
|
||||
API_RETURN_INT(rc);
|
||||
}
|
||||
|
||||
API_FUNC(completion_free)
|
||||
|
||||
Reference in New Issue
Block a user