From 37c3e11ab8f141cfcf8415472c7c1ed104fae475 Mon Sep 17 00:00:00 2001 From: Marcus Eggenberger Date: Sat, 1 Nov 2008 20:28:13 +0100 Subject: [PATCH] Fixing BR #282 - tab completion doesn't insert suffix when there is already text in the inputline --- src/uisupport/tabcompleter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } -- 2.20.1