diff options
-rw-r--r-- | src/common/completion.c | 5 | ||||
-rw-r--r-- | weechat/src/common/completion.c | 5 |
2 files changed, 6 insertions, 4 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; diff --git a/weechat/src/common/completion.c b/weechat/src/common/completion.c index f01b42e9a..40996e46a 100644 --- a/weechat/src/common/completion.c +++ b/weechat/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; |