Fixing BR #282 - tab completion doesn't insert suffix when there is already text...
authorMarcus Eggenberger <egs@quassel-irc.org>
Sat, 1 Nov 2008 19:28:13 +0000 (20:28 +0100)
committerMarcus Eggenberger <egs@quassel-irc.org>
Sat, 1 Nov 2008 19:28:13 +0000 (20:28 +0100)
src/uisupport/tabcompleter.cpp

index b9a6fe2..93a0fa4 100644 (file)
@@ -116,7 +116,7 @@ void TabCompleter::complete() {
     nextCompletion++;
     
     // we're completing the first word of the line
-    if(inputLine->text().length() == lastCompletionLength) {
+    if(inputLine->cursorPosition() == lastCompletionLength) {
       inputLine->insert(nickSuffix);
       lastCompletionLength += nickSuffix.length();
     }