X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Ftabcompleter.cpp;h=93a0fa4c57ff387ad8d4f1f26074aa8971e5e6a0;hp=b9a6fe2ecc5d9fba9948f6dc6965524f71ef9401;hb=b3ec58929bead822048a25f87f6a0d699c490b7a;hpb=ea62a014f7b88d7f56cb759abb185d334ecb24d7 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(); }