From: Marcus Eggenberger Date: Sat, 1 Nov 2008 19:28:13 +0000 (+0100) Subject: Fixing BR #282 - tab completion doesn't insert suffix when there is already text... X-Git-Tag: 0.3.1~91 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=37c3e11ab8f141cfcf8415472c7c1ed104fae475 Fixing BR #282 - tab completion doesn't insert suffix when there is already text in the inputline --- diff --git a/src/uisupport/tabcompleter.cpp b/src/uisupport/tabcompleter.cpp index b9a6fe2e..93a0fa4c 100644 --- a/src/uisupport/tabcompleter.cpp +++ b/src/uisupport/tabcompleter.cpp @@ -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(); }