Fixed tabcompleter not completing some special characters correctly.
authorSebastian Goth <seezer@roath.org>
Thu, 3 Jul 2008 13:46:47 +0000 (15:46 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Thu, 3 Jul 2008 22:01:33 +0000 (00:01 +0200)
src/uisupport/tabcompleter.cpp

index 82868c1..4ac8260 100644 (file)
@@ -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) {