From 91d8f58ff834d0dc73f26f44518fa66cce592a2d Mon Sep 17 00:00:00 2001 From: Sebastian Goth Date: Thu, 3 Jul 2008 15:46:47 +0200 Subject: [PATCH] Fixed tabcompleter not completing some special characters correctly. --- 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 f13636c6..33c0dfbd 100644 --- a/src/uisupport/tabcompleter.cpp +++ b/src/uisupport/tabcompleter.cpp @@ -70,7 +70,7 @@ void TabCompleter::buildCompletionList() { */ QString tabAbbrev = inputLine->text().left(inputLine->cursorPosition()).section(' ',-1,-1); - QRegExp regex(QString("^[^a-zA-Z]*").append(tabAbbrev), Qt::CaseInsensitive); + QRegExp regex(QString("^[^a-zA-Z]*").append(QRegExp::escape(tabAbbrev)), Qt::CaseInsensitive); foreach(IrcUser *ircUser, channel->ircUsers()) { if(regex.indexIn(ircUser->nick()) > -1) { -- 2.20.1