Fix tabcompletion with added space mid-sentence
authorManuel Nickschas <sputnick@quassel-irc.org>
Fri, 3 Feb 2012 14:42:44 +0000 (15:42 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Fri, 3 Feb 2012 14:42:44 +0000 (15:42 +0100)
src/uisupport/tabcompleter.cpp

index 2c15fdb..5d2bf02 100644 (file)
@@ -144,6 +144,7 @@ void TabCompleter::complete() {
       _lastCompletionLength += _nickSuffix.length();
     } else if (s.addSpaceMidSentence()) {
       _lineEdit->insert(" ");
+      _lastCompletionLength++;
     }
 
   // we're at the end of the list -> start over again