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

Fixed completion bug: now allows command completion in private buffers

This commit is contained in:
Sebastien Helleu
2005-02-27 10:16:51 +00:00
parent 4d4d697b17
commit 46234f0504
2 changed files with 6 additions and 4 deletions
+3 -2
View File
@@ -548,8 +548,9 @@ completion_find_context (t_completion *completion, void *channel, char *buffer,
}
}
if (!completion->completion_list && channel
&& (((t_irc_channel *)channel)->type == CHAT_PRIVATE))
if (!completion->completion_list && channel &&
(((t_irc_channel *)channel)->type == CHAT_PRIVATE)
&& (completion->context == COMPLETION_NICK))
{
/* nick completion in private (only other nick and self) */
completion->context = COMPLETION_NICK;
+3 -2
View File
@@ -548,8 +548,9 @@ completion_find_context (t_completion *completion, void *channel, char *buffer,
}
}
if (!completion->completion_list && channel
&& (((t_irc_channel *)channel)->type == CHAT_PRIVATE))
if (!completion->completion_list && channel &&
(((t_irc_channel *)channel)->type == CHAT_PRIVATE)
&& (completion->context == COMPLETION_NICK))
{
/* nick completion in private (only other nick and self) */
completion->context = COMPLETION_NICK;