From: Sebastian Goth Date: Thu, 3 Jul 2008 13:46:47 +0000 (+0200) Subject: Fixed tabcompleter not completing some special characters correctly. X-Git-Tag: 0.3.0~316 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=91d8f58ff834d0dc73f26f44518fa66cce592a2d Fixed tabcompleter not completing some special characters correctly. --- 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) {