Fixed tabcompleter not completing some special characters correctly.
authorSebastian Goth <seezer@roath.org>
Thu, 3 Jul 2008 13:46:47 +0000 (15:46 +0200)
committerSebastian Goth <seezer@roath.org>
Thu, 3 Jul 2008 13:52:36 +0000 (15:52 +0200)
src/uisupport/tabcompleter.cpp

index f13636c..33c0dfb 100644 (file)
@@ -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) {