summaryrefslogtreecommitdiff
path: root/src/common/completion.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2005-02-27 10:16:51 +0000
committerSebastien Helleu <flashcode@flashtux.org>2005-02-27 10:16:51 +0000
commit46234f050474fe0b4cbece05f206b308f9d8ef3a (patch)
treea2e70eaf57d3031bf04cd06309f5fe3e0a5e8cf2 /src/common/completion.c
parent4d4d697b1790d6ffc4e00fbe9450ea5bcec3ac9b (diff)
downloadweechat-46234f050474fe0b4cbece05f206b308f9d8ef3a.zip
Fixed completion bug: now allows command completion in private buffers
Diffstat (limited to 'src/common/completion.c')
-rw-r--r--src/common/completion.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/common/completion.c b/src/common/completion.c
index f01b42e9a..40996e46a 100644
--- a/src/common/completion.c
+++ b/src/common/completion.c
@@ -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;