From: Manuel Nickschas Date: Fri, 3 Feb 2012 14:42:44 +0000 (+0100) Subject: Fix tabcompletion with added space mid-sentence X-Git-Tag: 0.8-beta1~28 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=18931d024940d902ed8b1e241fbdeb98d2f1b424;hp=79d9606c41f65c25df54758e064697208895d402 Fix tabcompletion with added space mid-sentence --- diff --git a/src/uisupport/tabcompleter.cpp b/src/uisupport/tabcompleter.cpp index 2c15fdb1..5d2bf027 100644 --- a/src/uisupport/tabcompleter.cpp +++ b/src/uisupport/tabcompleter.cpp @@ -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