[Konversation-devel] [Bug 256829] <TAB> auto-completes a nick even if the person has left the channel if you don't specify the beginning of the nick

Peter Simonsson peter.simonsson at gmail.com
Sat Nov 13 19:26:35 CET 2010


https://bugs.kde.org/show_bug.cgi?id=256829


Peter Simonsson <peter.simonsson at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED




--- Comment #1 from Peter Simonsson <peter simonsson gmail com>  2010-11-13 19:26:34 ---
commit 0078505c526d2d04a07b3f666a61d0a2a53656e5
branch master
Author: Peter Simonsson <peter.simonsson at gmail.com>
Date:   Sat Nov 13 19:22:37 2010 +0100

    Check if the nick is still around before inserting last completion

    BUG:256829

diff --git a/src/irc/channel.cpp b/src/irc/channel.cpp
index 3d1f6ab..0c63e19 100644
--- a/src/irc/channel.cpp
+++ b/src/irc/channel.cpp
@@ -502,8 +502,8 @@ void Channel::completeNick()
         pos = oldPos;
     }

-    // If the cursor is at beginning of line, insert last completion
-    if(pos == 0 && !channelInput->lastCompletion().isEmpty())
+    // If the cursor is at beginning of line, insert last completion if the
nick is still around
+    if(pos == 0 && !channelInput->lastCompletion().isEmpty() &&
nicknameList.containsNick(channelInput->lastCompletion()))
     {
         QString addStart(Preferences::self()->nickCompleteSuffixStart());
         newLine = channelInput->lastCompletion() + addStart;

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Konversation-devel mailing list