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