1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-05 01:03:14 +02:00

irc: use current channel first in completion "irc_channels" (task #12923, issue #392)

This commit is contained in:
Sébastien Helleu
2015-11-16 20:24:45 +01:00
parent 10f0873bee
commit 17e1747a82
2 changed files with 10 additions and 0 deletions
+8
View File
@@ -480,6 +480,14 @@ irc_completion_channels_cb (void *data, const char *completion_item,
}
}
/* add current channel first in list */
irc_buffer_get_server_and_channel (buffer, NULL, &ptr_channel);
if (ptr_channel)
{
weechat_hook_completion_list_add (completion, ptr_channel->name,
0, WEECHAT_LIST_POS_BEGINNING);
}
return WEECHAT_RC_OK;
}