From: Sebastian Goth Date: Thu, 3 Jul 2008 13:46:47 +0000 (+0200) Subject: Fixed tabcompleter not completing some special characters correctly. X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=1eccb5c7836e8fde583e55ef68ae3b93e457f6b3 Fixed tabcompleter not completing some special characters correctly. --- diff --git a/src/uisupport/tabcompleter.cpp b/src/uisupport/tabcompleter.cpp index 82868c1b..4ac8260a 100644 --- a/src/uisupport/tabcompleter.cpp +++ b/src/uisupport/tabcompleter.cpp @@ -69,7 +69,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) {