summaryrefslogtreecommitdiff
path: root/src/plugins/alias
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2008-06-18 16:47:09 +0200
committerSebastien Helleu <flashcode@flashtux.org>2008-06-18 16:47:09 +0200
commit66e8d703bd12c3c5da29c091d14485e260f6ab31 (patch)
tree0b2fa44b1da0c0d5c105c3426c0900ef3d2a4363 /src/plugins/alias
parent47c9c68b40dfaaf0f61f0d3ee1d37db1934f241a (diff)
downloadweechat-66e8d703bd12c3c5da29c091d14485e260f6ab31.zip
Add new options for completion, optional stop instead of cycling with words found
Diffstat (limited to 'src/plugins/alias')
-rw-r--r--src/plugins/alias/alias.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/plugins/alias/alias.c b/src/plugins/alias/alias.c
index 3bfd3094d..2625eea96 100644
--- a/src/plugins/alias/alias.c
+++ b/src/plugins/alias/alias.c
@@ -805,20 +805,22 @@ unalias_command_cb (void *data, struct t_gui_buffer *buffer, int argc,
*/
int
-alias_completion_cb (void *data, const char *completion,
- struct t_gui_buffer *buffer, struct t_weelist *list)
+alias_completion_cb (void *data, const char *completion_item,
+ struct t_gui_buffer *buffer,
+ struct t_gui_completion *completion)
{
struct t_alias *ptr_alias;
/* make C compiler happy */
(void) data;
- (void) completion;
+ (void) completion_item;
(void) buffer;
for (ptr_alias = alias_list; ptr_alias;
ptr_alias = ptr_alias->next_alias)
{
- weechat_list_add (list, ptr_alias->name, WEECHAT_LIST_POS_SORT);
+ weechat_hook_completion_list_add (completion, ptr_alias->name,
+ 0, WEECHAT_LIST_POS_SORT);
}
return WEECHAT_RC_OK;