From 86bbe537bc7cb0efa3d6465957783443d09356bb Mon Sep 17 00:00:00 2001 From: kushagra Date: Mon, 23 Mar 2015 23:11:28 +0530 Subject: [PATCH] autocomplete will work for : also,fixes #1377 --- src/widget/form/tabcompleter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widget/form/tabcompleter.cpp b/src/widget/form/tabcompleter.cpp index 382fb6c8f..2eb8713cb 100644 --- a/src/widget/form/tabcompleter.cpp +++ b/src/widget/form/tabcompleter.cpp @@ -49,7 +49,7 @@ void TabCompleter::buildCompletionList() nextCompletion = completionMap.begin(); // split the string on the given RE (not chars, nums or braces/brackets) and take the last section - QString tabAbbrev = msgEdit->toPlainText().left(msgEdit->textCursor().position()).section(QRegExp("[^\\w\\d-_\\[\\]{}|`^.\\\\]"), -1, -1); + QString tabAbbrev = msgEdit->toPlainText().left(msgEdit->textCursor().position()).section(QRegExp("[^\\w\\d:--_\\[\\]{}|`^.\\\\]"), -1, -1); // that section is then used as the completion regex QRegExp regex(QString("^[-_\\[\\]{}|`^.\\\\]*").append(QRegExp::escape(tabAbbrev)), Qt::CaseInsensitive);