projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
09312db
)
Fixed tabcompleter not completing some special characters correctly.
author
Sebastian Goth
<seezer@roath.org>
Thu, 3 Jul 2008 13:46:47 +0000
(15:46 +0200)
committer
Sebastian Goth
<seezer@roath.org>
Thu, 3 Jul 2008 13:52:36 +0000
(15:52 +0200)
src/uisupport/tabcompleter.cpp
patch
|
blob
|
history
diff --git
a/src/uisupport/tabcompleter.cpp
b/src/uisupport/tabcompleter.cpp
index
f13636c
..
33c0dfb
100644
(file)
--- 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) {