Fix tabcompletion with added space mid-sentence
[quassel.git] / 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 += _nickSuffix.length();
     } else if (s.addSpaceMidSentence()) {
       _lineEdit->insert(" ");
+      _lastCompletionLength++;
     }
 
   // we're at the end of the list -> start over again
     }
 
   // we're at the end of the list -> start over again