From 18931d024940d902ed8b1e241fbdeb98d2f1b424 Mon Sep 17 00:00:00 2001 From: Manuel Nickschas Date: Fri, 3 Feb 2012 15:42:44 +0100 Subject: [PATCH 1/1] Fix tabcompletion with added space mid-sentence --- src/uisupport/tabcompleter.cpp | 1 + 1 file changed, 1 insertion(+) 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 -- 2.20.1